diff options
Diffstat (limited to 'sysutils/u-boot-cubox-hummingboard/files/patch-common_cmd__test.c')
-rw-r--r-- | sysutils/u-boot-cubox-hummingboard/files/patch-common_cmd__test.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/sysutils/u-boot-cubox-hummingboard/files/patch-common_cmd__test.c b/sysutils/u-boot-cubox-hummingboard/files/patch-common_cmd__test.c deleted file mode 100644 index a3c01c2132d5..000000000000 --- a/sysutils/u-boot-cubox-hummingboard/files/patch-common_cmd__test.c +++ /dev/null @@ -1,19 +0,0 @@ ---- common/cmd_test.c.orig 2014-09-16 12:12:11 UTC -+++ common/cmd_test.c -@@ -22,9 +22,14 @@ static int do_test(cmd_tbl_t *cmdtp, int - char * const *ap; - int left, adv, expr, last_expr, neg, last_cmp; - -- /* args? */ -- if (argc < 3) -+ /* -+ * If no args, that's bogus, return false. -+ * If op is -z and no other args, answer is Yes, string is empty. -+ */ -+ if (argc < 2) - return 1; -+ else if (argc == 2) -+ return !(strcmp(argv[1], "-z") == 0); - - #ifdef DEBUG - { |