SF.net SVN: geany:[3590] trunk
eht16 at users.sourceforge.net
eht16 at xxxxx
Wed Feb 18 14:57:59 UTC 2009
Revision: 3590
http://geany.svn.sourceforge.net/geany/?rev=3590&view=rev
Author: eht16
Date: 2009-02-18 14:57:58 +0000 (Wed, 18 Feb 2009)
Log Message:
-----------
Fix a possible crash when comparing symbol names (could be related to Ubuntu bug #147151).
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/symbols.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2009-02-16 13:42:55 UTC (rev 3589)
+++ trunk/ChangeLog 2009-02-18 14:57:58 UTC (rev 3590)
@@ -1,3 +1,10 @@
+2009-02-18 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
+
+ * src/symbols.c:
+ Fix a possible crash when comparing symbol names
+ (could be related to Ubuntu bug #147151).
+
+
2009-02-15 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* plugins/makefile.win32:
Modified: trunk/src/symbols.c
===================================================================
--- trunk/src/symbols.c 2009-02-16 13:42:55 UTC (rev 3589)
+++ trunk/src/symbols.c 2009-02-18 14:57:58 UTC (rev 3590)
@@ -391,6 +391,12 @@
if (tag_a == NULL || tag_b == NULL)
return 0;
+ if (tag_a->name == NULL)
+ return -(tag_a->name != tag_b->name);
+
+ if (tag_b->name == NULL)
+ return tag_a->name != tag_b->name;
+
ret = strcmp(tag_a->name, tag_b->name);
if (ret == 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