diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-19 21:33:19 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-19 21:33:19 +0000 |
commit | 4ebaf1074218d4e1c2907114bc53080c5abbd57d (patch) | |
tree | 8abee9b7a3ed71e5e224096246b9c43fee3b3e44 /libbb | |
parent | 2405ad659e2596b17c88e7b950c086159d06cc6e (diff) | |
download | busybox-w32-4ebaf1074218d4e1c2907114bc53080c5abbd57d.tar.gz busybox-w32-4ebaf1074218d4e1c2907114bc53080c5abbd57d.tar.bz2 busybox-w32-4ebaf1074218d4e1c2907114bc53080c5abbd57d.zip |
strdup -> xstrdup
sed: de-obfuscate piece of code
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/loop.c b/libbb/loop.c index 14835ec24..9818a30cb 100644 --- a/libbb/loop.c +++ b/libbb/loop.c | |||
@@ -142,7 +142,7 @@ try_again: | |||
142 | } | 142 | } |
143 | close(ffd); | 143 | close(ffd); |
144 | if (!rc) { | 144 | if (!rc) { |
145 | if (!*device) *device = strdup(dev); | 145 | if (!*device) *device = xstrdup(dev); |
146 | return mode==O_RDONLY ? 1 : 0; | 146 | return mode==O_RDONLY ? 1 : 0; |
147 | } | 147 | } |
148 | return rc; | 148 | return rc; |