[geany/geany-plugins] a2f2ce: Addons: XMLtagging: Change sort of a check to prevent checking \0 for a space

Frank Lanitz git-noreply at xxxxx
Thu Nov 7 14:28:37 UTC 2013


Branch:      refs/heads/master
Author:      Frank Lanitz <frank at frank.uvena.de>
Committer:   Frank Lanitz <frank at frank.uvena.de>
Date:        Thu, 07 Nov 2013 14:28:37 UTC
Commit:      a2f2ce063f7fd43f15b2962eea5c0d33801853cc
             https://github.com/geany/geany-plugins/commit/a2f2ce063f7fd43f15b2962eea5c0d33801853cc

Log Message:
-----------
Addons: XMLtagging: Change sort of a check to prevent checking \0 for a space


Modified Paths:
--------------
    addons/src/ao_xmltagging.c

Modified: addons/src/ao_xmltagging.c
2 files changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -104,7 +104,7 @@ void ao_xmltagging(void)
 				/* We try to find a space inside the inserted tag as we
 				 * only need to close the tag with part until first space.
 				 * */
-				while (!g_ascii_isspace(tag->str[end]) && end < tag->len)
+				while (end < tag->len && !g_ascii_isspace(tag->str[end]) )
 					end++;
 
 				if (end > 0)



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list