mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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 <olaf@aepfle.de>
This commit is contained in:
committed by
Richard W.M. Jones
parent
853feb971f
commit
bdb5689f58
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user