Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addons: Trying to clean up some variable mess on xmltagging #124

Merged

Conversation

frlan
Copy link
Member

@frlan frlan commented Nov 6, 2013

I've tried to clean up the xmltagging function a bit


/* 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[end]) && tag[end] != '\0')
while (!g_ascii_isspace(tag->str[end]) && end < tag->len)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the tests should be swapped so position at tag->len isn't tested. Though, since tag->str is 0-terminated, it's no real problem.

@b4n
Copy link
Member

b4n commented Nov 6, 2013

Looks good as far as I can tell and am concerned.

frlan added a commit that referenced this pull request Nov 6, 2013
…iables_handling

Addons: Trying to clean up some variable mess on xmltagging
@frlan frlan merged commit a89ae14 into geany:master Nov 6, 2013
@frlan frlan deleted the addons/xmltagging/reworke_some_variables_handling branch November 6, 2013 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants