You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by mt...@apache.org on 2010/05/17 06:09:29 UTC

svn commit: r944959 - /trafficserver/traffic/trunk/iocore/utils/Layout.cc

Author: mturk
Date: Mon May 17 04:09:28 2010
New Revision: 944959

URL: http://svn.apache.org/viewvc?rev=944959&view=rev
Log:
Use xstrdup instead strdup directly

Modified:
    trafficserver/traffic/trunk/iocore/utils/Layout.cc

Modified: trafficserver/traffic/trunk/iocore/utils/Layout.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/iocore/utils/Layout.cc?rev=944959&r1=944958&r2=944959&view=diff
==============================================================================
--- trafficserver/traffic/trunk/iocore/utils/Layout.cc (original)
+++ trafficserver/traffic/trunk/iocore/utils/Layout.cc Mon May 17 04:09:28 2010
@@ -63,7 +63,7 @@ layout_relative(const char *root, const 
     }
     return NULL;
   }
-  return strdup(path);
+  return xstrdup(path);
 }
 
 char *
@@ -81,7 +81,7 @@ Layout::relative_to(const char *dir, con
 Layout::Layout(const char *_prefix)
 {
   if (_prefix) {
-    prefix = strdup(_prefix);
+    prefix = xstrdup(_prefix);
   }
   else {
     FILE *fp;
@@ -130,7 +130,7 @@ Layout::Layout(const char *_prefix)
                 path, err, errno, strerror(errno));
       return;
     }
-    prefix = strdup(path);
+    prefix = xstrdup(path);
   }
   exec_prefix = layout_relative(prefix, EXEC_PREFIX);
   bindir = layout_relative(prefix, BINDIR);