1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-10-06 20:03:46 -04: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);
if (output.buffer != NULL) {
if (output.buffer) {
output.buffer[output.size++] = '\0';
return output.buffer;
} else {