summaryrefslogtreecommitdiffstats
path: root/source/printing
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-03-16 21:05:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:34 -0500
commit2703df7a8f26a315ae6ab53de8f7814fa66a1c54 (patch)
tree0761f421f263a5cf1b9f1f3490e1203062a9fd86 /source/printing
parent69f816e9f885bdeb6e8c67222b6fdca76d9d1025 (diff)
downloadsamba-2703df7a8f26a315ae6ab53de8f7814fa66a1c54.tar.gz
samba-2703df7a8f26a315ae6ab53de8f7814fa66a1c54.tar.xz
samba-2703df7a8f26a315ae6ab53de8f7814fa66a1c54.zip
r14489: Guard against coverity reversion. #181 is a false positive
but make the intent clearer. Jeremy.
Diffstat (limited to 'source/printing')
-rw-r--r--source/printing/nt_printing.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/printing/nt_printing.c b/source/printing/nt_printing.c
index 91530fc82cb..63f722c9b59 100644
--- a/source/printing/nt_printing.c
+++ b/source/printing/nt_printing.c
@@ -754,6 +754,8 @@ int get_ntforms(nt_forms_struct **list)
int i;
int n = 0;
+ *list = NULL;
+
for (kbuf = tdb_firstkey(tdb_forms);
kbuf.dptr;
newkey = tdb_nextkey(tdb_forms, kbuf), safe_free(kbuf.dptr), kbuf=newkey)