skeleton: fix segment fault if the argument of enclave runtime is empty
If enclave.runtime.args is set to empty as following:
"enclave.runtime.args": "",
or there is no this configuration, the segment fault will be
triggered. This fix resolves this issue.
@@ -680,6 +680,9 @@ static void check_opts(const char *opt)
void parse_args(const char *args)
{
+ if (!args || args[0] == '\0')
+ return;
+
char *a = strdup(args);
if (!a)
return;
