fix some precedence errors

Spotted by Andrey Karpov using static code analysis:
   http://www.viva64.com/en/b/0273/
This commit is contained in:
Simon Budig
2014-08-15 23:02:31 +02:00
parent 9a8d2f577e
commit 99abc566d4
3 changed files with 5 additions and 5 deletions

View File

@ -895,7 +895,7 @@ script_fu_menu_map (const gchar *menu_path)
{
const gchar *suffix = menu_path + strlen (mapping[i].old);
if (! *suffix == '/')
if (*suffix != '/')
continue;
return g_strconcat (mapping[i].new, suffix, NULL);