From 09e1e7618e08a406dae31e55fddbd30975b4b354 Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 4 May 2015 22:57:49 +0100 Subject: [PATCH] Use null check convention in tinyurl.c --- src/tools/tinyurl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {