From 419871306c5e26abe4b63bc2414d726910810873 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 16 Mar 2006 21:05:15 +0000 Subject: r14489: Guard against coverity reversion. #181 is a false positive but make the intent clearer. Jeremy. (This used to be commit 2703df7a8f26a315ae6ab53de8f7814fa66a1c54) --- source3/printing/nt_printing.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/printing') diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index 91530fc82c..63f722c9b5 100644 --- a/source3/printing/nt_printing.c +++ b/source3/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) -- cgit