ソースを参照

Fix crash when STARPU_CHECK_LAUNCHER_ARGS is not defined

Samuel Thibault 5 年 前
コミット
cb6caf6e35
共有1 個のファイルを変更した2 個の追加0 個の削除を含む
  1. 2 0
      tests/loader.c

+ 2 - 0
tests/loader.c

@@ -309,6 +309,8 @@ int main(int argc, char *argv[])
 		setenv("STARPU_CHECK_LAUNCHER", launcher, 1);
 		if (launcher_args)
 			setenv("STARPU_CHECK_LAUNCHER_ARGS", launcher_args, 1);
+		else
+			launcher_args = "";
 
 		/* And give a convenience macro */
 		size_t len_launch = strlen(launcher) + 1 + strlen(launcher_args) + 1;