[gimp/gimp-2-8] libgimpconfig: fix if condition
- From: Mikael Magnusson <mikachu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-8] libgimpconfig: fix if condition
- Date: Fri, 31 Oct 2014 03:12:05 +0000 (UTC)
commit 949e90e2a7de306a3563e01acefaae6efa03fc76
Author: Mikael Magnusson <mikachu src gnome org>
Date: Wed Oct 29 21:01:00 2014 +0100
libgimpconfig: fix if condition
(cherry picked from commit d96096515e097a9f2e5d6797a8dffe22ea93308e)
(cherry picked from commit cf3e7bc40b7a2312d6acef76aed1b69b7a96106b)
libgimpconfig/gimpconfig-path.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgimpconfig/gimpconfig-path.c b/libgimpconfig/gimpconfig-path.c
index 2578fe1..07fdad7 100644
--- a/libgimpconfig/gimpconfig-path.c
+++ b/libgimpconfig/gimpconfig-path.c
@@ -475,7 +475,7 @@ gimp_config_path_extract_token (const gchar **str)
while (*p && (*p != '}'))
p = g_utf8_next_char (p);
- if (!p)
+ if (! *p)
return NULL;
token = g_strndup (*str + 2, g_utf8_pointer_to_offset (*str + 2, p));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]