Revision 3c3271d9 sysdep/unix/main.c

View differences:

sysdep/unix/main.c
91 91
unix_read_config(struct config **cp, char *name)
92 92
{
93 93
  struct config *conf = config_alloc(name);
94
  int ret;
94 95

  
95 96
  *cp = conf;
96 97
  conf_fd = open(name, O_RDONLY);
97 98
  if (conf_fd < 0)
98 99
    return 0;
99 100
  cf_read_hook = cf_read;
100
  return config_parse(conf);
101
  ret = config_parse(conf);
102
  close(conf_fd);
103
  return ret;
101 104
}
102 105

  
103 106
static void

Also available in: Unified diff