[gimp] fix parser for plugin image types
- From: Simon Budig <simon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] fix parser for plugin image types
- Date: Fri, 15 Aug 2014 23:01:02 +0000 (UTC)
commit 56fa168ec3e7db33b2dac15cdc018daa2eb1820f
Author: Simon Budig <simon budig de>
Date: Fri Aug 15 23:07:48 2014 +0200
fix parser for plugin image types
Spotted by Andrey Karpov using static code analysis:
http://www.viva64.com/en/b/0273/
app/plug-in/gimppluginprocedure.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/app/plug-in/gimppluginprocedure.c b/app/plug-in/gimppluginprocedure.c
index fa8574f..917742b 100644
--- a/app/plug-in/gimppluginprocedure.c
+++ b/app/plug-in/gimppluginprocedure.c
@@ -804,10 +804,11 @@ image_types_parse (const gchar *name,
g_printerr ("%s: image-type contains unrecognizable parts:"
"'%s'\n", name, type_spec);
+ /* skip to next token */
while (*image_types &&
- ((*image_types != ' ') ||
- (*image_types != '\t') ||
- (*image_types != ',')))
+ *image_types != ' ' &&
+ *image_types != '\t' &&
+ *image_types != ',')
{
image_types++;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]