PUD: receiver: do not touch olsr_cnf->pud_position when HTTPINFO_PUD is not defined
authorFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 6 Jun 2012 10:43:04 +0000 (12:43 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 7 Jun 2012 22:30:03 +0000 (00:30 +0200)
because that field isn't there in that case.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/pud/src/receiver.c

index 8897cdf..5c02175 100644 (file)
@@ -757,8 +757,6 @@ bool startReceiver(void) {
 
 #ifdef HTTPINFO_PUD
        olsr_cnf->pud_position = &transmitGpsInformation;
-#else
-       olsr_cnf->pud_position = NULL;
 #endif
        initPositionAverageList(&positionAverageList, getAverageDepth());