strdup -> xstrdup
authorChristos Zoulas <christos@zoulas.com>
Thu, 6 Oct 2011 14:51:50 +0000 (10:51 -0400)
committerChristos Zoulas <christos@zoulas.com>
Thu, 6 Oct 2011 14:51:50 +0000 (10:51 -0400)
libamu/mtab.c

index e78b03d9fede9133fffc94c2116f0a4532a0a7f1..1513ce380a5f8cfa2f1ef35670a4bee1f4650a5c 100644 (file)
@@ -233,9 +233,9 @@ hasmntstr(mntent_t *mnt, char *opt)
 
       char *endptr = strchr(eq, ',');
 
-      /* if saw no comma, return strdup'd string */
+      /* if saw no comma, return xstrdup'd string */
       if (!endptr)
-       return strdup(eq);
+       return xstrdup(eq);
       else {
        /* else we need to copy only the chars needed */
        int len = endptr - eq;