SF.net SVN: geany:[3735] trunk
eht16 at users.sourceforge.net
eht16 at xxxxx
Sat Apr 25 09:30:07 UTC 2009
Revision: 3735
http://geany.svn.sourceforge.net/geany/?rev=3735&view=rev
Author: eht16
Date: 2009-04-25 09:30:07 +0000 (Sat, 25 Apr 2009)
Log Message:
-----------
Prevent crashes when two or more top level items in the symbol list have the same name (closes #2778246).
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/symbols.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2009-04-25 08:31:46 UTC (rev 3734)
+++ trunk/ChangeLog 2009-04-25 09:30:07 UTC (rev 3735)
@@ -1,3 +1,10 @@
+2009-04-25 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
+
+ * src/symbols.c:
+ Prevent crashes when two or more top level items in the symbol
+ list have the same name (closes #2778246).
+
+
2009-04-24 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* src/keybindings.c:
Modified: trunk/src/symbols.c
===================================================================
--- trunk/src/symbols.c 2009-04-25 08:31:46 UTC (rev 3734)
+++ trunk/src/symbols.c 2009-04-25 09:30:07 UTC (rev 3735)
@@ -1142,6 +1142,10 @@
return -1;
if (utils_str_equal(name, b))
return 1;
+ /* This should never happen as it would mean that two or more top
+ * level items have the same name but it can happen by typos in the translations. */
+ if (utils_str_equal(a, b))
+ return 1;
}
g_warning("Couldn't find top level node '%s' or '%s'!", a, b);
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