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