diff options
-rw-r--r-- | src/pwgui/main.cpp | 2 |
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) { |