From: Colin Walters Date: Fri, 28 Oct 2016 13:32:02 +0000 (-0400) Subject: remote-refs: Add NULL terminator to options array X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~44^2~28 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=05dc77d7e5f31e210a7d93edf75e42eb66f1d26d;p=ostree.git remote-refs: Add NULL terminator to options array Caught by `-fsanitize=undefined`. Closes: #552 Approved by: jlebon --- diff --git a/src/ostree/ot-remote-builtin-refs.c b/src/ostree/ot-remote-builtin-refs.c index da3bcbb9..4317c45f 100644 --- a/src/ostree/ot-remote-builtin-refs.c +++ b/src/ostree/ot-remote-builtin-refs.c @@ -29,6 +29,7 @@ static char* opt_cache_dir; static GOptionEntry option_entries[] = { { "cache-dir", 0, 0, G_OPTION_ARG_STRING, &opt_cache_dir, "Use custom cache dir", NULL }, + { NULL } }; gboolean