git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1582105
)
avoid "syntax-check" failure: hide cast of argument to free
author
Jim Meyering
<meyering@redhat.com>
Mon, 9 Nov 2009 14:06:36 +0000
(15:06 +0100)
committer
Jim Meyering
<meyering@redhat.com>
Tue, 10 Nov 2009 16:00:18 +0000
(17:00 +0100)
* fuse/guestmount.c (fg_readlink): Perform cast in a
separate statement to hide it from "make syntax-check".
fuse/guestmount.c
patch
|
blob
|
history
diff --git
a/fuse/guestmount.c
b/fuse/guestmount.c
index
c7220c0
..
d45c18b
100644
(file)
--- a/
fuse/guestmount.c
+++ b/
fuse/guestmount.c
@@
-360,8
+360,10
@@
fg_readlink (const char *path, char *buf, size_t size)
memcpy (buf, r, len);
buf[len] = '\0';
- if (free_it)
- free ((char *) r);
+ if (free_it) {
+ char *tmp = (char *) r;
+ free (tmp);
+ }
return 0;
}