Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/dist/cdk (fselect.c:1.5)
Christos Zoulas <christos%netbsd.org@localhost> typed:
: Module Name: src
: Committed By: christos
: Date: Sun Mar 26 21:53:55 UTC 2006
: Modified Files:
: src/dist/cdk: fselect.c
: Log Message:
: Coverity CID 2042: Plug memory leak
Brackets.
--- dist/cdk/fselect.c.org 2006-03-27 10:28:41.000000000 +1100
+++ dist/cdk/fselect.c 2006-03-27 11:11:11.000000000 +1100
@@ -944,7 +944,7 @@
/* Make sure the filename is not null. */
/* If the filename length is equal to zero, just leave. */
- if (filename == 0 || filenameLen = (int)strlen (filename))
+ if (filename == 0 || (filenameLen = (int)strlen (filename)))
{
freeChar (filename);
freeChar (basename);
Home |
Main Index |
Thread Index |
Old Index