summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-08-29 16:27:07 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-08-29 16:28:30 +0200
commit223d89654d7c7b4fdba37e327baa536b71b7a7c0 (patch)
treee72f412524191b48af5997f15f661ca71cd03114
parentde58edb22d0cedd78d599921706dad84752ef2e7 (diff)
downloadlr-223d89654d7c7b4fdba37e327baa536b71b7a7c0.tar.gz
lr-223d89654d7c7b4fdba37e327baa536b71b7a7c0.tar.xz
lr-223d89654d7c7b4fdba37e327baa536b71b7a7c0.zip
xattr_string: return empty static string
-rw-r--r--lr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lr.c b/lr.c
index 00b6454..6467acb 100644
--- a/lr.c
+++ b/lr.c
@@ -1084,7 +1084,7 @@ fstype(dev_t devid)
 	return result ? (*result)->name : strid(devid);
 }
 
-static char*
+static char *
 xattr_string(const char *f)
 {
 #ifdef __linux__
@@ -1124,7 +1124,9 @@ xattr_string(const char *f)
 
 	return buf;
 #else
-	return "";		// No support for xattrs on this platform.
+	static char empty[] = "";
+	(void) f;
+	return empty;		// No support for xattrs on this platform.
 #endif
 }