diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2016-12-23 18:21:54 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2016-12-23 18:21:54 +0100 |
commit | 2bc38cbc0ab3f5ac8fe1a38dbf78afb05d3c6838 (patch) | |
tree | aa7a9e546c52c0a8136ab65179a54e2517e58a4b | |
parent | 1fc144cdc4d3eca610722818db389ef4eff6366a (diff) | |
download | uca-net-2bc38cbc0ab3f5ac8fe1a38dbf78afb05d3c6838.tar.gz uca-net-2bc38cbc0ab3f5ac8fe1a38dbf78afb05d3c6838.tar.bz2 uca-net-2bc38cbc0ab3f5ac8fe1a38dbf78afb05d3c6838.tar.xz uca-net-2bc38cbc0ab3f5ac8fe1a38dbf78afb05d3c6838.zip |
Fix #6: correctly check g_strcmp0
-rw-r--r-- | uca-net-camera.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uca-net-camera.c b/uca-net-camera.c index 9750758..31ee926 100644 --- a/uca-net-camera.c +++ b/uca-net-camera.c @@ -370,7 +370,7 @@ request_get_property (GSocketConnection *connection, const gchar *name, GValue * g_value_set_double (value, atof (reply.property_value)); break; case G_TYPE_BOOLEAN: - g_value_set_boolean (value, g_strcmp0 (reply.property_value, "TRUE")); + g_value_set_boolean (value, g_strcmp0 (reply.property_value, "TRUE") == 0); break; case G_TYPE_STRING: g_value_set_string (value, reply.property_value); |