aboutsummaryrefslogtreecommitdiff
path: root/src/mountinfo.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-10-08 11:16:22 +0000
committerRoy Marples <roy@marples.name>2007-10-08 11:16:22 +0000
commitcd4bce7e8da691b8be0a88292eee13852b826b7e (patch)
tree26ab1fb49a790b8855b0dc60781551896c065931 /src/mountinfo.c
parenta89ceb7e2c994e2a3907d9c906d99021a6e15788 (diff)
Wups, should be xstrdup
Diffstat (limited to 'src/mountinfo.c')
-rw-r--r--src/mountinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mountinfo.c b/src/mountinfo.c
index 25e83ca5..58a70b3e 100644
--- a/src/mountinfo.c
+++ b/src/mountinfo.c
@@ -173,7 +173,7 @@ static char **find_mounts (struct args *args)
for (o = optnames; flags && o->o_opt; o++) {
if (flags & o->o_opt) {
if (! options)
- options = strdup (o->o_name);
+ options = xstrdup (o->o_name);
else {
char *tmp = NULL;
asprintf (&tmp, "%s,%s", options, o->o_name);