strdup -> xstrdup
authorChristos Zoulas <christos@zoulas.com>
Thu, 6 Oct 2011 14:34:17 +0000 (10:34 -0400)
committerChristos Zoulas <christos@zoulas.com>
Thu, 6 Oct 2011 14:34:17 +0000 (10:34 -0400)
amd/ops_cachefs.c

index 39b967b94c6cf346551916e137e27da17c6c61b0..fbaed1c6092c49441b797b71a700eb0c96a5b0fd 100644 (file)
@@ -99,7 +99,7 @@ cachefs_match(am_opts *fo)
   dlog("CACHEFS: using cache directory \"%s\"", fo->opt_cachedir);
 
   /* determine magic cookie to put in mtab */
-  return strdup(fo->opt_cachedir);
+  return xstrdup(fo->opt_cachedir);
 }
 
 
@@ -114,7 +114,7 @@ cachefs_init(mntfs *mf)
    * Save cache directory name
    */
   if (!mf->mf_private) {
-    mf->mf_private = (voidp) strdup(mf->mf_fo->opt_cachedir);
+    mf->mf_private = (voidp) xstrdup(mf->mf_fo->opt_cachedir);
     mf->mf_prfree = (void (*)(voidp)) free;
   }