From: Danny Al-Gaaf Date: Sun, 2 Jun 2013 09:43:26 +0000 (+0200) Subject: mount/mount.ceph.c: reduce scope of 'value' X-Git-Tag: v0.65~132^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=84dedf5bc0e84b6231271f5796a84c53fd803993;p=ceph.git mount/mount.ceph.c: reduce scope of 'value' Signed-off-by: Danny Al-Gaaf --- diff --git a/src/mount/mount.ceph.c b/src/mount/mount.ceph.c index 95731b347770..5bbedd086faa 100755 --- a/src/mount/mount.ceph.c +++ b/src/mount/mount.ceph.c @@ -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;