Always log execs

This commit is contained in:
Philip Prindeville 2023-08-24 12:10:58 -06:00 committed by Olof Hagsand
parent 55f3e396e9
commit 4a3fef4946
2 changed files with 31 additions and 12 deletions

View file

@ -178,12 +178,9 @@ clixon_string_del_join(char *str1,
clicon_err(OE_UNIX, errno, "malloc");
return NULL;
}
if (str1){
snprintf(str, len, "%s%s%s", str1, del, str2);
snprintf(str, len, "%s%s%s", (str1 ? str1 : ""), del, str2);
if (str1)
free(str1);
}
else
snprintf(str, len, "%s%s", del, str2);
return str;
}