Changeset View
Changeset View
Standalone View
Standalone View
src/engine-gpgconf.c
| Show First 20 Lines • Show All 393 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| static gpgme_error_t | static gpgme_error_t | ||||
| gpgconf_parse_option (gpgme_conf_opt_t opt, | gpgconf_parse_option (gpgme_conf_opt_t opt, | ||||
| gpgme_conf_arg_t *arg_p, char *line) | gpgme_conf_arg_t *arg_p, char *line) | ||||
| { | { | ||||
| gpgme_error_t err; | gpgme_error_t err; | ||||
| char *mark; | char *mark = NULL; | ||||
| if (!line[0]) | if (!line[0]) | ||||
| return 0; | return 0; | ||||
| while (line) | while (line) | ||||
| { | { | ||||
| gpgme_conf_arg_t arg; | gpgme_conf_arg_t arg; | ||||
| if (opt->type != GPGME_CONF_STRING) | |||||
| mark = strchr (line, ','); | mark = strchr (line, ','); | ||||
| if (mark) | if (mark) | ||||
| *mark = '\0'; | *mark = '\0'; | ||||
| arg = calloc (1, sizeof (*arg)); | arg = calloc (1, sizeof (*arg)); | ||||
| if (!arg) | if (!arg) | ||||
| return gpg_error_from_syserror (); | return gpg_error_from_syserror (); | ||||
| *arg_p = arg; | *arg_p = arg; | ||||
| arg_p = &arg->next; | arg_p = &arg->next; | ||||
| ▲ Show 20 Lines • Show All 845 Lines • Show Last 20 Lines | |||||