mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-22 18:16:21 +00:00
Fixed possible NULL pointer references when offline
This commit is contained in:
@@ -60,10 +60,14 @@ tinyurl_get(char *url)
|
||||
curl_easy_perform(handle);
|
||||
curl_easy_cleanup(handle);
|
||||
|
||||
output.buffer[output.size++] = '\0';
|
||||
g_string_free(full_url, TRUE);
|
||||
|
||||
return output.buffer;
|
||||
if (output.buffer != NULL) {
|
||||
output.buffer[output.size++] = '\0';
|
||||
return output.buffer;
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
static size_t
|
||||
|
||||
Reference in New Issue
Block a user