summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2019-07-25 11:04:45 +0100
committerFrediano Ziglio <fziglio@redhat.com>2019-07-26 16:38:03 +0100
commit327e61044b5141b3d8efad8ded001c7505f29f63 (patch)
tree661a68ccf163c67af4579b8fb6f721feb94986a5
parent3e517ae0431c33841fda48519bbbbc59e8e7cf2e (diff)
Removed only written system_config_file field
Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jeremy White <jwhite@codeweavers.com>
-rw-r--r--src/options.c3
-rw-r--r--src/options.h1
2 files changed, 1 insertions, 3 deletions
diff --git a/src/options.c b/src/options.c
index c7c75a8..a6c7b9e 100644
--- a/src/options.c
+++ b/src/options.c
@@ -80,7 +80,6 @@ void options_free(options_t *options)
str_replace(&options->on_connect, NULL);
str_replace(&options->on_disconnect, NULL);
str_replace(&options->user_config_file, NULL);
- str_replace(&options->system_config_file, NULL);
}
@@ -353,7 +352,7 @@ static void options_from_config(options_t *options)
systemkey = g_key_file_new();
if (!g_key_file_load_from_dirs(systemkey, "x11spice/x11spice.conf",
(const char **) g_get_system_config_dirs(),
- &options->system_config_file, G_KEY_FILE_NONE, NULL)) {
+ NULL, G_KEY_FILE_NONE, NULL)) {
g_key_file_free(systemkey);
systemkey = NULL;
}
diff --git a/src/options.h b/src/options.h
index e7cdece..94341e8 100644
--- a/src/options.h
+++ b/src/options.h
@@ -65,7 +65,6 @@ typedef struct {
/* file names of config files */
char *user_config_file;
- char *system_config_file;
} options_t;