]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
conf: added missing allocations
authorYehuda Sadeh <yehuda@hq.newdream.net>
Wed, 29 Apr 2009 18:41:44 +0000 (11:41 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Wed, 29 Apr 2009 18:41:44 +0000 (11:41 -0700)
src/cfuse.cc
src/common/debug.cc

index ce0a0e3f2e21be9d9510f06e10a6ec639d85fb29..b502e6099d0342ee6a469034bd1b003ed853931d 100644 (file)
@@ -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();
 
index 911537884c38298c3fd4fe8f543f45130ba1f9f0..771e3b3e5394cb77fefc756bdb4ad4d50b85b2c1 100644 (file)
@@ -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);