diff options
author | Raghavendra Talur <rtalur@redhat.com> | 2014-02-12 14:37:23 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2014-02-16 12:22:14 -0800 |
commit | 82f995e6a9ba9ac4ca02d9db2f42bc9037936151 (patch) | |
tree | 17b1ec95799b9e47834327c12462baa09103fe8a /glusterfsd | |
parent | e77c485c700c9e127ae564958eb5c4733e61f888 (diff) |
glusterfsd: Use gf_strdup instead of assigning a literal.
Fix for coverity bug CID:1124340
Change-Id: Ibf8700bdeaaddade02e63470a773c5fe2aabc645
BUG: 789278
Signed-off-by: Raghavendra Talur <rtalur@redhat.com>
Reviewed-on: http://review.gluster.org/6984
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'glusterfsd')
-rw-r--r-- | glusterfsd/src/glusterfsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c index c47d2ca3fc2..fb8afc6a4cf 100644 --- a/glusterfsd/src/glusterfsd.c +++ b/glusterfsd/src/glusterfsd.c @@ -1443,7 +1443,7 @@ parse_cmdline (int argc, char *argv[], glusterfs_ctx_t *ctx) if (ENABLE_DEBUG_MODE == cmd_args->debug_mode) { cmd_args->log_level = GF_LOG_DEBUG; - cmd_args->log_file = "/dev/stderr"; + cmd_args->log_file = gf_strdup ("/dev/stderr"); cmd_args->no_daemon_mode = ENABLE_NO_DAEMON_MODE; } |