summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2021-05-02 08:18:24 -0400
committerMichael R Sweet <michael.r.sweet@gmail.com>2021-05-02 08:18:24 -0400
commit854a1ab80cb568d2d7981623e342757f33c584c8 (patch)
tree05dca58103794d48f236ede5c669755e7f3f939f
parentc033a5c1c532c4777a9ab71009cfeb9ba81e5a35 (diff)
downloadcups-854a1ab80cb568d2d7981623e342757f33c584c8.tar.gz
Make sure monitor_done is initialized before running the monitor thread (thanks, Smith!)
-rw-r--r--tools/ipptool.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/ipptool.c b/tools/ipptool.c
index 11c93e1ea..49374761d 100644
--- a/tools/ipptool.c
+++ b/tools/ipptool.c
@@ -1197,7 +1197,10 @@ do_test(_ipp_file_t *f, /* I - IPP data file */
*/
if (data->monitor_uri)
+ {
+ data->monitor_done = 0;
data->monitor_thread = _cupsThreadCreate((_cups_thread_func_t)do_monitor_printer_state, data);
+ }
/*
* Take over control of the attributes in the request...