diff --git a/libs/RevoEX/src/nhttp/d_nhttp_private.c b/libs/RevoEX/src/nhttp/d_nhttp_private.c index b8086aae..b1e86030 100644 --- a/libs/RevoEX/src/nhttp/d_nhttp_private.c +++ b/libs/RevoEX/src/nhttp/d_nhttp_private.c @@ -55,7 +55,13 @@ static s32 ConnectionStarted(NHTTPConnectionInfo* handle) { void* system=NHTTPi_GetSystemInfoP(); void* mutex=NHTTPi_GetMutexInfoP(system); NHTTPConnectionInfo* connection=NHTTPi_GetConnection(mutex,handle); - return connection ? connection->started : -1; + s32 started; + if (connection == NULL) { + started = -1; + } else { + started = connection->started; + } + return started; } static s32 ConnectionState(NHTTPConnectionInfo* handle) {