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:
Olaf Hering
2012-09-04 17:43:39 +02:00
committed by Richard W.M. Jones
parent 853feb971f
commit bdb5689f58

View File

@@ -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;