PUD: cfg: clear nodeIdBinary.set in setNodeId
authorFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 6 Jun 2012 13:46:40 +0000 (15:46 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 7 Jun 2012 22:30:03 +0000 (00:30 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/pud/src/configuration.c

index 1d3a3c3..08426eb 100644 (file)
@@ -132,6 +132,7 @@ int setNodeId(const char *value, void *data __attribute__ ((unused)), set_plugin
        strcpy((char *) &nodeId[0], value);
        nodeIdLength = valueLength;
        nodeIdSet = true;
+       nodeIdBinary.set = false;
 
        return false;
 }