diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-12-18 12:36:07 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-12-18 12:36:07 +0100 |
commit | 4b6abf6655ce664e25be2bc977b2d5e3f1946bbb (patch) | |
tree | 90a4baa3be02f2dc1eee0385bbcb222ede3e475d | |
parent | afa2d33aa495ab243e9b1347ae0ee9c6eb30c260 (diff) | |
download | busybox-w32-4b6abf6655ce664e25be2bc977b2d5e3f1946bbb.tar.gz busybox-w32-4b6abf6655ce664e25be2bc977b2d5e3f1946bbb.tar.bz2 busybox-w32-4b6abf6655ce664e25be2bc977b2d5e3f1946bbb.zip |
tar: fix recently added SEGV on "tar" w/o args
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | archival/tar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/tar.c b/archival/tar.c index 5994d8913..399302bfd 100644 --- a/archival/tar.c +++ b/archival/tar.c | |||
@@ -860,7 +860,7 @@ int tar_main(int argc UNUSED_PARAM, char **argv) | |||
860 | applet_long_options = tar_longopts; | 860 | applet_long_options = tar_longopts; |
861 | #endif | 861 | #endif |
862 | #if ENABLE_DESKTOP | 862 | #if ENABLE_DESKTOP |
863 | if (argv[1][0] != '-') { | 863 | if (argv[1] && argv[1][0] != '-') { |
864 | /* Compat: | 864 | /* Compat: |
865 | * 1st argument without dash handles options with parameters | 865 | * 1st argument without dash handles options with parameters |
866 | * differently from dashed one: it takes *next argv[i]* | 866 | * differently from dashed one: it takes *next argv[i]* |