From 0bdba574d735ae37447d4c1e8bd0b6a4e622da79 Mon Sep 17 00:00:00 2001 From: Luca BRUNO Date: Mon, 10 Jan 2022 10:22:28 +0000 Subject: ostree: check g_setenv return value This adds proper return-value checks on g_setenv calls. It fixes a static analysis warning highlighted by Coverity. --- tests/test-rollsum-cli.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/test-rollsum-cli.c') diff --git a/tests/test-rollsum-cli.c b/tests/test-rollsum-cli.c index 44e3390c..2cf730d3 100644 --- a/tests/test-rollsum-cli.c +++ b/tests/test-rollsum-cli.c @@ -35,7 +35,8 @@ main (int argc, char **argv) OstreeRollsumMatches *matches; GMappedFile *mfile; - g_setenv ("GIO_USE_VFS", "local", TRUE); + gboolean is_ok = g_setenv ("GIO_USE_VFS", "local", TRUE); + g_assert (is_ok == TRUE); if (argc < 3) return 1; -- cgit v1.2.1