summaryrefslogtreecommitdiff
path: root/libbb/loop.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/loop.c')
-rw-r--r--libbb/loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/loop.c b/libbb/loop.c
index 14835ec..9818a30 100644
--- a/libbb/loop.c
+++ b/libbb/loop.c
@@ -142,7 +142,7 @@ try_again:
}
close(ffd);
if (!rc) {
- if (!*device) *device = strdup(dev);
+ if (!*device) *device = xstrdup(dev);
return mode==O_RDONLY ? 1 : 0;
}
return rc;