summaryrefslogtreecommitdiff
path: root/src/core/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/session.c')
-rw-r--r--src/core/session.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/session.c b/src/core/session.c
index ee1e2456..4572bdb2 100644
--- a/src/core/session.c
+++ b/src/core/session.c
@@ -329,14 +329,13 @@ static void sig_init_finished(void)
config_close(session);
unlink(session_file);
- session_file = NULL;
}
void session_register_options(void)
{
- static struct poptOption options[] = {
- { "session", 0, POPT_ARG_STRING | POPT_ARGFLAG_DOC_HIDDEN, &session_file, 0, "Used by /UPGRADE command", "PATH" },
- { NULL, '\0', 0, NULL }
+ static GOptionEntry options[] = {
+ { "session", 0, G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_STRING, &session_file, "Used by /UPGRADE command", "PATH" },
+ { NULL }
};
session_file = NULL;