diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2017-09-22 15:36:21 +0200 |
---|---|---|
committer | pranavk <pranavk@collabora.co.uk> | 2017-09-22 15:49:00 +0200 |
commit | 7df3faa8ebb05cdc36113d07910498d4ba180856 (patch) | |
tree | 5f70f4ca271250ef1c9c988f05247fbf3f0786e9 /libreofficekit | |
parent | f0ac41c0dce81976680b091694a5aff2979be32e (diff) |
Fix gtktiledviewer crash: this should be a null terminated list
Change-Id: I06e0923980b98b37b06ab45d8db68424b01d4f71
Reviewed-on: https://gerrit.libreoffice.org/42645
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
Diffstat (limited to 'libreofficekit')
-rw-r--r-- | libreofficekit/qa/gtktiledviewer/gtv-application.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libreofficekit/qa/gtktiledviewer/gtv-application.cxx b/libreofficekit/qa/gtktiledviewer/gtv-application.cxx index 88106ae6b583..ba1096c538ec 100644 --- a/libreofficekit/qa/gtktiledviewer/gtv-application.cxx +++ b/libreofficekit/qa/gtktiledviewer/gtv-application.cxx @@ -50,7 +50,8 @@ gtv_application_init(GtvApplication* app) { "enable-tiled-annotations", 0, 0, G_OPTION_ARG_NONE, nullptr, "Whether tiled annotations should be enabled", nullptr }, { "background-color", 0, 0, G_OPTION_ARG_STRING, nullptr, "Background color", nullptr }, { "hide-page-shadow", 0, 0, G_OPTION_ARG_NONE, nullptr, "Hide page shadow", nullptr }, - { "hide-whitespace", 0, 0, G_OPTION_ARG_NONE, nullptr, "Hide whitespace", nullptr } + { "hide-whitespace", 0, 0, G_OPTION_ARG_NONE, nullptr, "Hide whitespace", nullptr }, + { nullptr, 0, 0, G_OPTION_ARG_NONE, nullptr, nullptr, nullptr }, }; g_application_add_main_option_entries(G_APPLICATION(app), commandLineOptions); |