From 85bcfff8a2ca933854907eb8fb1ead46d8c4b376 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sun, 2 May 2021 08:16:52 -0400 Subject: [PATCH] Make sure monitor_done is initialized before running the monitor thread (thanks, Smith!) --- tools/ipptool.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/ipptool.c b/tools/ipptool.c index 11c93e1ead..49374761df 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... -- 2.47.3