cfgfile_gen: improve printing of SmartGatewayPolicyRoutingScript
authorFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 30 Apr 2015 09:26:50 +0000 (11:26 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 1 May 2015 07:38:57 +0000 (09:38 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/cfgparser/cfgfile_gen.c

index dfc9140..95c6862 100644 (file)
@@ -619,7 +619,7 @@ void olsrd_write_cnf_autobuf(struct autobuf *out, struct olsrd_config *cnf) {
     "\n");
   abuf_appendf(out, "%sSmartGatewayPolicyRoutingScript %s\n",
       !cnf->smart_gw_policyrouting_script ? "# " : "",
-      !cnf->smart_gw_policyrouting_script ? "" : cnf->smart_gw_policyrouting_script);
+      !cnf->smart_gw_policyrouting_script ? "\"\"" : cnf->smart_gw_policyrouting_script);
   abuf_puts(out,
     "\n"
     "# Determines the egress interfaces that are part of the multi-gateway setup and\n"