git » libfiu » commit 8dc3258

Correct comparison in fiu_run_init

author Moritz Lipp
2017-09-04 20:21:57 UTC
committer Alberto Bertogli
2017-09-04 23:03:40 UTC
parent 8750555f42da439a34f5545f0c18a6972735f7cb

Correct comparison in fiu_run_init

preload/run/run.c +1 -1

diff --git a/preload/run/run.c b/preload/run/run.c
index 74ca75b..bce0739 100644
--- a/preload/run/run.c
+++ b/preload/run/run.c
@@ -23,7 +23,7 @@ static void __attribute__((constructor)) fiu_run_init(void)
 	}
 
 	fiu_enable_env = getenv("FIU_ENABLE");
-	if (fiu_enable_env && fiu_enable_env != '\0') {
+	if (fiu_enable_env && *fiu_enable_env != '\0') {
 		/* FIU_ENABLE can contain more than one command, separated by
 		 * a newline, so we split them and call fiu_rc_string()
 		 * accordingly. */