[gegl] gegl: GeglPath fixing parsing of key/value pairs
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] gegl: GeglPath fixing parsing of key/value pairs
- Date: Fri, 1 May 2020 17:06:57 +0000 (UTC)
commit 66e2b4bfc70e844af485b05a650b0dc56616ae13
Author: Øyvind Kolås <pippin gimp org>
Date: Fri May 1 19:02:24 2020 +0200
gegl: GeglPath fixing parsing of key/value pairs
Check for termination of string properly, which is when the derferenced
value is 0, the pointer will not end up being NULL here anyways,
fixing issue #242.
gegl/property-types/gegl-path.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gegl/property-types/gegl-path.c b/gegl/property-types/gegl-path.c
index d28d1f87f..3f04af664 100644
--- a/gegl/property-types/gegl-path.c
+++ b/gegl/property-types/gegl-path.c
@@ -1027,11 +1027,11 @@ parse_float_pair (const gchar *p,
{
gchar *t = (void*) p;
while (*t && ((*t<'0' || *t > '9') && *t!='-')) t++;
- if (!t)
+ if (!*t)
return p;
*x = g_ascii_strtod (t, &t);
while (*t && ((*t<'0' || *t > '9') && *t!='-')) t++;
- if (!t)
+ if (!*t)
return p;
*y = g_ascii_strtod (t, &t);
return t;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]