diff --git a/libUseful-2.8/http.c b/libUseful-2.8/http.c index 809d677..dad733a 100755 --- a/libUseful-2.8/http.c +++ b/libUseful-2.8/http.c @@ -1131,7 +1131,7 @@ if (g_Flags & HTTP_REQ_HTTPS) return(S); if (!S) S=HTTPSetupConnection(Info, FALSE); -S->Path=FormatStr(S->Path,"%s://%s:%d/%s",Info->Protocol,Info->Host,Info->Port,Info->Doc); +if (S) S->Path=FormatStr(S->Path,"%s://%s:%d/%s",Info->Protocol,Info->Host,Info->Port,Info->Doc); return(S); }