]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mount/mount.ceph.c: reduce scope of 'value'
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sun, 2 Jun 2013 09:43:26 +0000 (11:43 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 3 Jun 2013 09:55:50 +0000 (11:55 +0200)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/mount/mount.ceph.c

index 95731b3477704be77d0648bc02ef2403cd299439..5bbedd086faac99da58616a06b0a82d838ababec 100755 (executable)
@@ -79,7 +79,6 @@ static char *mount_resolve_src(const char *orig_str)
  */
 static char *parse_options(const char *data, int *filesys_flags)
 {
-       char * value = NULL;
        char * next_keyword = NULL;
        char * out = NULL;
        int out_len = 0;
@@ -95,6 +94,7 @@ static char *parse_options(const char *data, int *filesys_flags)
                printf("parsing options: %s\n", data);
 
        do {
+               char * value = NULL;
                /*  check if ends with trailing comma */
                if(*data == 0)
                        break;