From b9de2dc61162bf7cb89560319aab5e96b920e8e0 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 9 Nov 2009 15:06:36 +0100 Subject: [PATCH] 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". --- fuse/guestmount.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fuse/guestmount.c b/fuse/guestmount.c index c7220c0..d45c18b 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; } -- 1.8.3.1