From: Michael R Sweet Date: Sun, 2 May 2021 12:16:52 +0000 (-0400) Subject: Make sure monitor_done is initialized before running the monitor thread (thanks,... X-Git-Tag: v2.4b1~125 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85bcfff8a2ca933854907eb8fb1ead46d8c4b376;p=thirdparty%2Fcups.git Make sure monitor_done is initialized before running the monitor thread (thanks, Smith!) --- 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...