diff options
author | Olaf Hering <olaf@aepfle.de> | 2012-09-04 17:43:39 +0200 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-09-04 17:26:04 +0100 |
commit | bdb5689f58c0db18de28d6a703b3af4f22eded38 (patch) | |
tree | edda30ec437e16718f0026e028dcdce6bf004239 | |
parent | 853feb971f4d111346d1f65211dbbd75ce1a9aae (diff) | |
download | libguestfs-bdb5689f58c0db18de28d6a703b3af4f22eded38.tar.gz libguestfs-bdb5689f58c0db18de28d6a703b3af4f22eded38.tar.xz libguestfs-bdb5689f58c0db18de28d6a703b3af4f22eded38.zip |
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>
-rw-r--r-- | fuse/guestmount.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 <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; |