X-Git-Url: http://git.maemo.org/git/?p=browser-switch;a=blobdiff_plain;f=config.c;h=0fbddf00775af3de4e34828050e0ae9400405b02;hp=727287fd3632cd27abc9a931e4e28c0600e0338c;hb=bf130a22e50fa0de2a13485016635a90a3b0861a;hpb=477b01a24f842c98e8abac56e3fe2ffb3d3a56db;ds=sidebyside diff --git a/config.c b/config.c index 727287f..0fbddf0 100644 --- a/config.c +++ b/config.c @@ -108,12 +108,12 @@ static int swb_config_load_option(struct swb_config *cfg, if (!(cfg->flags & opt.set_mask)) { switch (opt.type) { case SWB_CONFIG_OPT_STRING: - *(char **)cfg->entries[i] = value; - break; + *(char **)cfg->entries[i] = value; + break; case SWB_CONFIG_OPT_INT: - *(int *)cfg->entries[i] = atoi(value); - free(value); - break; + *(int *)cfg->entries[i] = atoi(value); + free(value); + break; } cfg->flags |= opt.set_mask; }