svn commit: samba r16319 - in trunk/source/lib: .
jra at samba.org
jra at samba.org
Fri Jun 16 23:07:25 GMT 2006
Author: jra
Date: 2006-06-16 23:07:24 +0000 (Fri, 16 Jun 2006)
New Revision: 16319
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16319
Log:
Ensure variable is not null before calling fclose.
Klocwork #412.
Jeremy.
Modified:
trunk/source/lib/getsmbpass.c
Changeset:
Modified: trunk/source/lib/getsmbpass.c
===================================================================
--- trunk/source/lib/getsmbpass.c 2006-06-16 23:04:16 UTC (rev 16318)
+++ trunk/source/lib/getsmbpass.c 2006-06-16 23:07:24 UTC (rev 16319)
@@ -163,7 +163,7 @@
fprintf(out, "\n");
fflush(out);
- if (in != stdin) /* We opened the terminal; now close it. */
+ if (in && in != stdin) /* We opened the terminal; now close it. */
fclose(in);
/* Catch problematic signals */
More information about the samba-cvs
mailing list