X-Git-Url: http://git.maemo.org/git/?p=browser-switch;a=blobdiff_plain;f=config.c;h=395bcf27c1e14ced60df3e3d0dbcd1964b59b4f0;hp=8928a3df983496f7f44088902be9d253e841a042;hb=bbf5dd7221e8297a95a1b3d7b3937782ea7ca5d4;hpb=addb0ed9acf6b77080894bbc1e85481f40de47f3;ds=sidebyside diff --git a/config.c b/config.c index 8928a3d..395bcf2 100644 --- a/config.c +++ b/config.c @@ -119,6 +119,10 @@ static int swb_config_load_option(struct swb_config *cfg, break; } cfg->flags |= opt->set_mask; + } else { + /* Option was repeated in the config file + We want the first value, so ignore this one */ + free(value); } retval = 1; break;