diff options
author | James Booth <boothj5@gmail.com> | 2015-05-04 22:57:49 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-05-04 22:57:49 +0100 |
commit | 09e1e7618e08a406dae31e55fddbd30975b4b354 (patch) | |
tree | 47183ce7883691ea0c4177f400c99b1b2033ff86 /src | |
parent | fe216b4e9777abe658c6a24e5c5faf5247e4b74d (diff) | |
download | profani-tty-09e1e7618e08a406dae31e55fddbd30975b4b354.tar.gz |
Use null check convention in tinyurl.c
Diffstat (limited to 'src')
-rw-r--r-- | src/tools/tinyurl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/tinyurl.c b/src/tools/tinyurl.c index 34e8967a..92ff97b8 100644 --- a/src/tools/tinyurl.c +++ b/src/tools/tinyurl.c @@ -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 { |