Commit be11789bffb534154be7da87c70a73156230b687

Authored by Perry Werneck
1 parent dc4d26c5
Exists in master and in 1 other branch develop

Fixing bug on boolean properties.

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
server/src/core/getproperties.c
... ... @@ -55,9 +55,10 @@ GVariant * ipc3270_get_property(GObject *object, const gchar *property_name, GEr
55 55 if(boolprop[ix].get && !g_ascii_strcasecmp(boolprop[ix].name, property_name)) {
56 56  
57 57 // Found it!
  58 + errno = 0;
58 59 int value = boolprop[ix].get(hSession);
59 60  
60   - debug("%s=%d",property_name,value);
  61 + debug("%s=%d (errno=%d)",property_name,value,errno);
61 62  
62 63 if(value > 0 || errno == 0) {
63 64 return g_variant_new_boolean(value != 0);
... ...