]> git.sur5r.net Git - i3/i3status/commitdiff
initialize result to NULL to shun compiler warning
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 22 Sep 2010 22:20:16 +0000 (00:20 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 22 Sep 2010 22:20:16 +0000 (00:20 +0200)
i3status.c

index 1b051960846b0480db0f70403e993431b0dd52a5..6d6fbc7f1f2e9064d87dde790a9bcbab16ed2ab6 100644 (file)
@@ -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));