summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2015-10-29 15:24:34 +0100
committerSimon Rettberg2015-10-29 15:24:34 +0100
commit5bad741a516a17c3e13d84e30e774002a14e1587 (patch)
tree246b80f08b4b52aa926601d34f14decd6953f2ff
parent[pwgui] Break backend messages by \n, feed backend through stdin (diff)
downloadprintergui-5bad741a516a17c3e13d84e30e774002a14e1587.tar.gz
printergui-5bad741a516a17c3e13d84e30e774002a14e1587.tar.xz
printergui-5bad741a516a17c3e13d84e30e774002a14e1587.zip
[pwgui] Fix compiler warning
-rw-r--r--src/pwgui/main.cpp2
1 files changed, 1 insertions, 1 deletions
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) {