Initialize near creation of resource. Makes code clearer.
authorJeremy Allison <jra@samba.org>
Fri, 10 Oct 2008 23:48:18 +0000 (16:48 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 10 Oct 2008 23:48:18 +0000 (16:48 -0700)
Jeremy.

source3/printing/print_cups.c

index 9326ac74a4e6f5e660668b238c9af3fada947c01..ca3415ca5a0cfec652091eb64425e9364016c11e 100644 (file)
@@ -553,6 +553,8 @@ bool cups_cache_reload(void)
                return false;
        }
 
+       *p_pipe_fd = -1;
+
        /* Set up an async refresh. */
        if (!cups_pcap_load_async(p_pipe_fd)) {
                return false;