Commit 4dd84ddf authored by Maxime Perrotin's avatar Maxime Perrotin

Fix handling of empty strings

parent 5c56e8f6
......@@ -583,9 +583,18 @@ void New_Processor (char *name,
processor->name = make_string ("%s", name);
processor->classifier = make_string ("%s", classifier);
processor->platform_name = make_string ("%s", platform);
processor->envvars = make_string ("%s", envvars);
processor->user_cflags = make_string ("%s", cflags);
processor->user_ldflags = make_string ("%s", ldflags);
if (strlen (envvars) > 0) {
processor->envvars = make_string ("%s", envvars);
}
else processor->envvars = NULL;
if (strlen(cflags) > 0) {
processor->user_cflags = make_string ("%s", cflags);
}
else processor->user_cflags = NULL;
if (strlen(ldflags) > 0) {
processor->user_ldflags = make_string ("%s", ldflags);
}
else processor->user_ldflags = NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment