SF.net SVN: geany: [1052] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Tue Dec 5 10:23:52 UTC 2006
Revision: 1052
http://svn.sourceforge.net/geany/?rev=1052&view=rev
Author: ntrel
Date: 2006-12-05 02:23:51 -0800 (Tue, 05 Dec 2006)
Log Message:
-----------
Prevent Valgrind warning with unlink(NULL).
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/socket.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-12-04 16:17:18 UTC (rev 1051)
+++ trunk/ChangeLog 2006-12-05 10:23:51 UTC (rev 1052)
@@ -1,3 +1,9 @@
+2006-12-05 Nick Treleaven <nick.treleaven at btinternet.com>
+
+ * src/socket.c:
+ Prevent Valgrind warning with unlink(NULL).
+
+
2006-12-04 Nick Treleaven <nick.treleaven at btinternet.com>
* src/highlighting.c, data/filetypes.d:
Modified: trunk/src/socket.c
===================================================================
--- trunk/src/socket.c 2006-12-04 16:17:18 UTC (rev 1051)
+++ trunk/src/socket.c 2006-12-05 10:23:51 UTC (rev 1052)
@@ -160,8 +160,11 @@
#ifdef G_OS_WIN32
WSACleanup();
#else
- unlink(socket_info.file_name);
- g_free(socket_info.file_name);
+ if (socket_info.file_name)
+ {
+ unlink(socket_info.file_name);
+ g_free(socket_info.file_name);
+ }
#endif
return 0;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list