Subject: Re: CVS commit: src/dist/cdk (fselect.c:1.5)
To: None <source-changes@netbsd.org>
From: Geoff Wing <mason@primenet.com.au>
List: source-changes
Date: 03/27/2006 00:13:30
Christos Zoulas <christos@netbsd.org> 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);