Skip to content

Commit

Permalink
fix crash on connection fail
Browse files Browse the repository at this point in the history
  • Loading branch information
ColumPaget committed Jun 26, 2017
1 parent a46b041 commit 1a50d6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libUseful-2.8/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 1a50d6f

Please sign in to comment.