From 5bad741a516a17c3e13d84e30e774002a14e1587 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 29 Oct 2015 15:24:34 +0100 Subject: [pwgui] Fix compiler warning --- src/pwgui/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/pwgui/main.cpp b/src/pwgui/main.cpp index 99459d2..8a9833b 100644 --- a/src/pwgui/main.cpp +++ b/src/pwgui/main.cpp @@ -342,7 +342,7 @@ static int run_backend(char *backend, char *uri, char *jobid, char *user, char * while ((readlen = read(pipefd[0], buffer, BUFLEN-1)) > 0) { buffer[readlen] = '\0'; char *ptr = buffer, *nl; - while (nl = strchr(ptr, '\n')) { + while ((nl = strchr(ptr, '\n'))) { *nl = '\0'; ERROR("BACKEND: %s\n", buffer); if (strstr(buffer, "Unable to get printer status (Unauthorized)") != NULL) { -- cgit v1.2.3-55-g7522