[gimp] libgimpconfig: serialize empty value arrays as (property-name 0)
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimpconfig: serialize empty value arrays as (property-name 0)
- Date: Tue, 13 Sep 2016 22:57:43 +0000 (UTC)
commit b63fed76eb6dbd92642e5e2c27cca55fda3555dd
Author: Michael Natterer <mitch gimp org>
Date: Wed Sep 14 00:56:17 2016 +0200
libgimpconfig: serialize empty value arrays as (property-name 0)
not (property-name NULL), which means nothing to the parser.
A "0" simply means an array with zero values.
libgimpconfig/gimpconfig-serialize.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgimpconfig/gimpconfig-serialize.c b/libgimpconfig/gimpconfig-serialize.c
index 56bf3c1..24aa952 100644
--- a/libgimpconfig/gimpconfig-serialize.c
+++ b/libgimpconfig/gimpconfig-serialize.c
@@ -479,7 +479,7 @@ gimp_config_serialize_value (const GValue *value,
}
else
{
- g_string_append (str, "NULL");
+ g_string_append (str, "0");
}
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]