summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2010-09-23 00:20:16 +0200
committerMichael Stapelberg <michael@stapelberg.de>2010-09-23 00:20:16 +0200
commit862297ecada056bce29eb603fc6f5e35471409f1 (patch)
tree255b8e383b104c978513d661241bf8797a0d47c4
parentadda6b4dd5b755433311ddf4a6a57cc6842fb55d (diff)
initialize result to NULL to shun compiler warning
-rw-r--r--i3status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/i3status.c b/i3status.c
index 1b05196..6d6fbc7 100644
--- a/i3status.c
+++ b/i3status.c
@@ -93,7 +93,7 @@ static int valid_color(const char *value)
*/
static char *resolve_tilde(const char *path) {
static glob_t globbuf;
- char *head, *tail, *result;
+ char *head, *tail, *result = NULL;
tail = strchr(path, '/');
head = strndup(path, tail ? (size_t)(tail - path) : strlen(path));