From: Yehuda Sadeh Date: Wed, 29 Apr 2009 18:41:44 +0000 (-0700) Subject: conf: added missing allocations X-Git-Tag: v0.7.3~14 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ce011f2e9704f209fdbb049e9a3bf238b2aa69b8;p=ceph.git conf: added missing allocations --- diff --git a/src/cfuse.cc b/src/cfuse.cc index ce0a0e3f2e2..b502e6099d0 100644 --- a/src/cfuse.cc +++ b/src/cfuse.cc @@ -50,7 +50,7 @@ int main(int argc, const char **argv, const char *envp[]) { vec_to_argv(args, argc, argv); // FUSE will chdir("/"); be ready. - g_conf.chdir = "/"; + g_conf.chdir = strdup("/"); if (g_conf.clock_tare) g_clock.tare(); diff --git a/src/common/debug.cc b/src/common/debug.cc index 911537884c3..771e3b3e539 100644 --- a/src/common/debug.cc +++ b/src/common/debug.cc @@ -47,7 +47,7 @@ void _dout_open_log() } if (!g_conf.log_sym_dir) - g_conf.log_sym_dir = g_conf.log_dir; + g_conf.log_sym_dir = strdup(g_conf.log_dir); if (g_conf.log_sym_dir[0] == '/') strcpy(_dout_symlink_dir, g_conf.log_sym_dir);