summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-02-18 11:16:54 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-02-18 11:16:54 +0100
commit508973808a736a563e54034f86dda39335d629f4 (patch)
treeafc20f617b0c1e238b0f9c95f0057ade9194fa28
parentf0d3fc0015535e0307f4d7d5dd4dbcdb585163ff (diff)
downloaduca-net-508973808a736a563e54034f86dda39335d629f4.tar.gz
uca-net-508973808a736a563e54034f86dda39335d629f4.tar.bz2
uca-net-508973808a736a563e54034f86dda39335d629f4.tar.xz
uca-net-508973808a736a563e54034f86dda39335d629f4.zip
Fix set property handler
No message type was sent thus corrupting communication.
-rw-r--r--ucad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ucad.c b/ucad.c
index 4ca35b0..649ef28 100644
--- a/ucad.c
+++ b/ucad.c
@@ -134,7 +134,7 @@ static void
handle_set_property_request (GSocketConnection *connection, UcaCamera *camera, gpointer message, GError **error)
{
UcaNetMessageSetPropertyRequest *request;
- UcaNetDefaultReply reply;
+ UcaNetDefaultReply reply = { .type = UCA_NET_MESSAGE_SET_PROPERTY };
GParamSpec *pspec;
GValue prop_value = {0};
GValue str_value = {0};