4 Sep
2012
4 Sep
'12
3:43 p.m.
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 <olaf@aepfle.de> --- diff --git a/fuse/guestmount.c b/fuse/guestmount.c index 17e94ba..1eb0553 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 <miklos@szeredi.hu> * 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; -- 1.7.11.5