squelch a compiler warning when the debugging code is #ifdef'ed out
authorHannes Gredler <hannes@gredler.at>
Mon, 28 Apr 2008 19:07:47 +0000 (21:07 +0200)
committerHannes Gredler <hannes@gredler.at>
Mon, 28 Apr 2008 19:07:47 +0000 (21:07 +0200)
src/lq_plugin.c

index 8c0da05..f4b03ee 100644 (file)
@@ -90,11 +90,12 @@ void set_lq_handler(struct lq_handler *handler, const char *name) {
   if (handler) {
     OLSR_PRINTF(1, "Activated lq_handler: %s\n", name);
     active_lq_handler = handler;
-  }
-  else {
+  } else {
     OLSR_PRINTF(1, "Activated lq_handler: default\n");
     active_lq_handler = &default_lq_handler;
   }
+
+  name = NULL; /* squelch compiler warning */
 }
 
 /*