1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Use null check convention in tinyurl.c

This commit is contained in:
James Booth 2015-05-04 22:57:49 +01:00
parent fe216b4e97
commit 09e1e7618e

View File

@ -74,7 +74,7 @@ tinyurl_get(char *url)
g_string_free(full_url, TRUE); g_string_free(full_url, TRUE);
if (output.buffer != NULL) { if (output.buffer) {
output.buffer[output.size++] = '\0'; output.buffer[output.size++] = '\0';
return output.buffer; return output.buffer;
} else { } else {