httpinfo: minor simplification in pud body function
authorFerry Huberts <ferry.huberts@pelagic.nl>
Sat, 14 Jul 2012 09:43:39 +0000 (11:43 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Sat, 14 Jul 2012 09:47:42 +0000 (11:47 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/httpinfo/src/olsrd_httpinfo.c

index bfbc477..2175d0a 100644 (file)
@@ -1191,7 +1191,7 @@ static void build_pud_body(struct autobuf *abuf) {
 
        nodeId = (char *) txGpsInfo->nodeId;
 
-       if (!txGpsInfo->nodeId || !strlen((char *) txGpsInfo->nodeId)) {
+       if (!nodeId || !strlen(nodeId)) {
                inet_ntop(olsr_cnf->ip_version, &olsr_cnf->main_addr, &nodeIdString[0], sizeof(nodeIdString));
                nodeId = nodeIdString;
        }