diff --git a/src/common/options.c b/src/common/options.c --- a/src/common/options.c +++ b/src/common/options.c @@ -107,6 +107,8 @@ int options_init(int argc, char *argv[], strcat(configfile, ".conf"); fprintf(stderr, "using configuration file: %s\n", configfile); + + /* initialize structs */ *allopts = malloc(sizeof(struct options_common)); if(!*allopts) { @@ -139,6 +141,7 @@ int options_init(int argc, char *argv[], (*allopts)->remoteio->ssh_command = strdup("ssh"); /** @TODO: check for NULL return above */ + cfg_opt_t common_opts[] = { CFG_SIMPLE_STR("ssh-command", &(*allopts)->remoteio->ssh_command),