projects
/
am-utils-6.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9e9a8c
)
strdup -> xstrdup
author
Christos Zoulas
<christos@zoulas.com>
Thu, 6 Oct 2011 14:51:50 +0000
(10:51 -0400)
committer
Christos Zoulas
<christos@zoulas.com>
Thu, 6 Oct 2011 14:51:50 +0000
(10:51 -0400)
libamu/mtab.c
patch
|
blob
|
history
diff --git
a/libamu/mtab.c
b/libamu/mtab.c
index e78b03d9fede9133fffc94c2116f0a4532a0a7f1..1513ce380a5f8cfa2f1ef35670a4bee1f4650a5c 100644
(file)
--- a/
libamu/mtab.c
+++ b/
libamu/mtab.c
@@
-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
x
strdup'd string */
if (!endptr)
- return strdup(eq);
+ return
x
strdup(eq);
else {
/* else we need to copy only the chars needed */
int len = endptr - eq;