xbps-uhelper: fix a warning reported by clang-3.8.1.

This commit is contained in:
Juan RP 2016-07-17 11:34:39 +02:00
parent 0cff982e7b
commit 9046727301

View File

@ -280,7 +280,7 @@ main(int argc, char **argv)
if (argc != 1) if (argc != 1)
usage(); usage();
if (xh.native_arch && xh.target_arch && strcmp(xh.native_arch, xh.target_arch)) { if (xh.native_arch[0] && xh.target_arch && strcmp(xh.native_arch, xh.target_arch)) {
printf("%s\n", xh.target_arch); printf("%s\n", xh.target_arch);
} else { } else {
printf("%s\n", xh.native_arch); printf("%s\n", xh.native_arch);