summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-10-10 16:48:18 -0700
committerJeremy Allison <jra@samba.org>2008-10-10 16:48:18 -0700
commit47f7ef8f39ba482a7d6578ab82c9e0670381c4f8 (patch)
treea3c1d8a36b24f00f468d4f48d60260512663ccdd /source3
parent1d151b3161b1bf82898baa9eb9dd1f212b79e2a1 (diff)
downloadsamba-47f7ef8f39ba482a7d6578ab82c9e0670381c4f8.tar.gz
samba-47f7ef8f39ba482a7d6578ab82c9e0670381c4f8.tar.bz2
samba-47f7ef8f39ba482a7d6578ab82c9e0670381c4f8.zip
Initialize near creation of resource. Makes code clearer.
Jeremy.
Diffstat (limited to 'source3')
-rw-r--r--source3/printing/print_cups.c2
1 files changed, 2 insertions, 0 deletions
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;