diff options
author | Emmanuele Bassi <ebassi@openedhand.com> | 2007-12-25 21:44:03 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@openedhand.com> | 2007-12-25 21:44:03 +0000 |
commit | 629d4a54913c578d7b612f10d9b04addc8e0c7fb (patch) | |
tree | adb6509130c2fa52971c45aa757e040d8ba66d6b /json-glib/json-node.c | |
parent | e172e9ccec88999e7d8433df08d8d92568537cf7 (diff) | |
download | json-glib-629d4a54913c578d7b612f10d9b04addc8e0c7fb.tar.gz |
Wrap config.h include with conditionals
Including the autotools generated config.h should always be conditional
on the HAVE_CONFIG_H definitions.
Diffstat (limited to 'json-glib/json-node.c')
-rw-r--r-- | json-glib/json-node.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/json-glib/json-node.c b/json-glib/json-node.c index faf1943..e147ad4 100644 --- a/json-glib/json-node.c +++ b/json-glib/json-node.c @@ -17,7 +17,9 @@ * Emmanuele Bassi <ebassi@openedhand.com> */ +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #include <glib.h> @@ -510,6 +512,7 @@ json_node_get_string (JsonNode *node) gchar * json_node_dup_string (JsonNode *node) { + g_return_val_if_fail (node != NULL, NULL); g_return_val_if_fail (JSON_NODE_TYPE (node) == JSON_NODE_VALUE, NULL); if (G_VALUE_TYPE (&(node->data.value)) == G_TYPE_STRING) |