From 9046727301605dac6db4c00c89df9af836934787 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 17 Jul 2016 11:34:39 +0200 Subject: [PATCH] xbps-uhelper: fix a warning reported by clang-3.8.1. --- bin/xbps-uhelper/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/xbps-uhelper/main.c b/bin/xbps-uhelper/main.c index 7211b707..2d04889f 100644 --- a/bin/xbps-uhelper/main.c +++ b/bin/xbps-uhelper/main.c @@ -280,7 +280,7 @@ main(int argc, char **argv) if (argc != 1) 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); } else { printf("%s\n", xh.native_arch);