diff options
author | Denis Vlasenko | 2006-12-16 23:49:13 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-12-16 23:49:13 +0000 |
commit | 9f739445cd3deddd0343c3a8d5a981ede26bef30 (patch) | |
tree | 6dc013e44d2281eb1e6f61c4bca1ae7546001f79 /archival/unlzma.c | |
parent | a597aaddfa76d589d3e1a37b1f1c3401c2decffd (diff) | |
download | busybox-9f739445cd3deddd0343c3a8d5a981ede26bef30.zip busybox-9f739445cd3deddd0343c3a8d5a981ede26bef30.tar.gz |
inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]
Diffstat (limited to 'archival/unlzma.c')
-rw-r--r-- | archival/unlzma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/unlzma.c b/archival/unlzma.c index 46fbefd..20c4ff2 100644 --- a/archival/unlzma.c +++ b/archival/unlzma.c @@ -26,7 +26,7 @@ int unlzma_main(int argc, char **argv) /* Set input filename and number */ filename = argv[optind]; - if (filename && (filename[0] != '-') && (filename[1] != '\0')) { + if (filename && NOT_LONE_DASH(filename)) { /* Open input file */ src_fd = xopen(filename, O_RDONLY); } else { |