summaryrefslogtreecommitdiff
path: root/client.c
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-06-19 16:32:52 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-06-19 16:32:52 +0800
commit0c900db232365d45b56ce8d85bbf1ed779ad2296 (patch)
tree4fbe505e83aa33c5f97f42833c474fb656112709 /client.c
parent6a7143eefd7865ffba7615234723fb1671946053 (diff)
Add parentheses to remove warning
Diffstat (limited to 'client.c')
-rw-r--r--client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client.c b/client.c
index 1edee75..f1591e8 100644
--- a/client.c
+++ b/client.c
@@ -46,7 +46,7 @@ void icclient_results(size_t (*handler)(void *contents, size_t size,
char nonspaced[strlen(prodgroup) + 1];
strcpy(nonspaced, prodgroup);
char *space = NULL;
- while (space = strchr(nonspaced, ' '))
+ while ((space = strchr(nonspaced, ' ')))
*space = '-';
request(handler, (void *)catalogptr, NULL, "%s", nonspaced);
}