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:
parent
fe216b4e97
commit
09e1e7618e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user