diff options
author | Jeremy Allison <jra@samba.org> | 2006-03-16 21:05:15 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:15:34 -0500 |
commit | 419871306c5e26abe4b63bc2414d726910810873 (patch) | |
tree | 5c9a630fd384ceb49f42b055fb3d17482ebafbea | |
parent | f4a5c016e31f8254800b6aec971f9397f0ee8ed1 (diff) | |
download | samba-419871306c5e26abe4b63bc2414d726910810873.tar.gz samba-419871306c5e26abe4b63bc2414d726910810873.tar.bz2 samba-419871306c5e26abe4b63bc2414d726910810873.zip |
r14489: Guard against coverity reversion. #181 is a false positive
but make the intent clearer.
Jeremy.
(This used to be commit 2703df7a8f26a315ae6ab53de8f7814fa66a1c54)
-rw-r--r-- | source3/printing/nt_printing.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) |