From bdb5689f58c0db18de28d6a703b3af4f22eded38 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Tue, 4 Sep 2012 17:43:39 +0200 Subject: fix fuse_opt_add_opt_escaped return type I: Program returns random data in a function E: libguestfs no-return-in-nonvoid-function guestmount.c:75 The function fuse_opt_add_opt_escaped has only one caller and a return code is not checked. Signed-off-by: Olaf Hering --- fuse/guestmount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fuse/guestmount.c b/fuse/guestmount.c index 17e94ba8..1eb0553b 100644 --- a/fuse/guestmount.c +++ b/fuse/guestmount.c @@ -49,7 +49,7 @@ static int write_pid_file (const char *pid_file, pid_t pid); * Copyright (C) 2001-2007 Miklos Szeredi * This [function] can be distributed under the terms of the GNU LGPLv2. */ -static int +static void fuse_opt_add_opt_escaped (char **opts, const char *opt) { unsigned oldlen = *opts ? strlen(*opts) : 0; -- cgit