Revision: 5737 http://geany.svn.sourceforge.net/geany/?rev=5737&view=rev Author: ntrel Date: 2011-04-25 16:23:58 +0000 (Mon, 25 Apr 2011)
Log Message: ----------- Fix warning in utils_find_open_xml_tag() with malformed tags like <~foo> (oops).
Modified Paths: -------------- trunk/ChangeLog trunk/src/utils.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2011-04-24 15:30:32 UTC (rev 5736) +++ trunk/ChangeLog 2011-04-25 16:23:58 UTC (rev 5737) @@ -1,3 +1,10 @@ +2011-04-25 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com> + + * src/utils.c: + Fix warning in utils_find_open_xml_tag() with malformed tags like + <~foo> (oops). + + 2011-04-23 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/utils.c, src/utils.h, src/plugindata.h, src/plugins.c,
Modified: trunk/src/utils.c =================================================================== --- trunk/src/utils.c 2011-04-24 15:30:32 UTC (rev 5736) +++ trunk/src/utils.c 2011-04-25 16:23:58 UTC (rev 5737) @@ -305,8 +305,7 @@ cur++;
len = cur - begin; - g_return_val_if_fail(len, NULL); - return g_strndup(begin, len); + return len ? g_strndup(begin, len) : NULL; }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.