From 47f7ef8f39ba482a7d6578ab82c9e0670381c4f8 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 10 Oct 2008 16:48:18 -0700 Subject: Initialize near creation of resource. Makes code clearer. Jeremy. --- source3/printing/print_cups.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/printing/print_cups.c') diff --git a/source3/printing/print_cups.c b/source3/printing/print_cups.c index 9326ac74a4..ca3415ca5a 100644 --- a/source3/printing/print_cups.c +++ b/source3/printing/print_cups.c @@ -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; -- cgit