diff options
author | Jim Meyering <meyering@redhat.com> | 2009-11-09 15:06:36 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-11-10 17:00:18 +0100 |
commit | b9de2dc61162bf7cb89560319aab5e96b920e8e0 (patch) | |
tree | e3782d02174746295ca67cc81b831e8bad055ed4 /fuse | |
parent | 15821057d4729d8bb369af3a230e717af5563abb (diff) | |
download | libguestfs-b9de2dc61162bf7cb89560319aab5e96b920e8e0.tar.gz libguestfs-b9de2dc61162bf7cb89560319aab5e96b920e8e0.tar.xz libguestfs-b9de2dc61162bf7cb89560319aab5e96b920e8e0.zip |
avoid "syntax-check" failure: hide cast of argument to free
* fuse/guestmount.c (fg_readlink): Perform cast in a
separate statement to hide it from "make syntax-check".
Diffstat (limited to 'fuse')
-rw-r--r-- | fuse/guestmount.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fuse/guestmount.c b/fuse/guestmount.c index c7220c08..d45c18bd 100644 --- 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; } |