We were checking strlen () == 0 instead of strncmp () == 0. Oops.
Signed-off-by: Mark Wielaard <mjw@redhat.com>
+2016-01-08 Mark Wielaard <mjw@redhat.com>
+
+ * elfputzdata.c (main): Fix parentheses in strncmp test.
+
2016-01-08 Mark Wielaard <mjw@redhat.com>
* elfputzdata.c (main): Use PRId64 to print 64 bit value.
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);
}