gateway: add an assert to prevent an 'unused' warning
authorFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 13 Dec 2012 12:57:25 +0000 (13:57 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 13 Dec 2012 12:59:30 +0000 (13:59 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/gateway.c

index 930a33c..44acb75 100644 (file)
@@ -805,6 +805,7 @@ void olsr_update_gateway_entry(union olsr_ip_addr *originator, union olsr_ip_add
   if (new_gw_in_list) {
     assert(gw_handler);
     new_gw_in_list = olsr_gw_list_update(&gw_list_ipv4, new_gw_in_list, gw_handler->getcosts(new_gw_in_list->gw));
+    assert(new_gw_in_list);
   }
 
   /* call update handler */