diff options
author | Mark Wielaard <mjw@redhat.com> | 2016-01-08 21:55:58 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2016-01-08 21:56:18 +0100 |
commit | 53e447113b60b56fb88109884749133d1b2e0d75 (patch) | |
tree | 0d00cc68ea4120f1ce23b29ebbe1b0e8cf0adac6 /tests/elfputzdata.c | |
parent | 3a5fc51573ae88a06d2050ef8425336e23013852 (diff) | |
download | android_external_elfutils-53e447113b60b56fb88109884749133d1b2e0d75.tar.gz android_external_elfutils-53e447113b60b56fb88109884749133d1b2e0d75.tar.bz2 android_external_elfutils-53e447113b60b56fb88109884749133d1b2e0d75.zip |
tests: Fix parentheses in elfputzdata strncmp test.
We were checking strlen () == 0 instead of strncmp () == 0. Oops.
Signed-off-by: Mark Wielaard <mjw@redhat.com>
Diffstat (limited to 'tests/elfputzdata.c')
-rw-r--r-- | tests/elfputzdata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/elfputzdata.c b/tests/elfputzdata.c index 67c60908..66ab77ba 100644 --- a/tests/elfputzdata.c +++ b/tests/elfputzdata.c @@ -83,7 +83,7 @@ main (int argc, char *argv[]) printf ("Cannot compress %zd %s\n", idx, name); } else if ((shdr->sh_flags & SHF_COMPRESSED) != 0 - || strncmp (name, ".zdebug", strlen (".zdebug") == 0)) + || strncmp (name, ".zdebug", strlen (".zdebug")) == 0) { printf ("Already compressed %zd %s\n", idx, name); } |