fix: Typo in run_shell when returning error

This commit is contained in:
Calum MacRae 2021-04-08 14:04:26 +01:00
parent 15498e6eb6
commit 103cca618b
No known key found for this signature in database
GPG key ID: 53922D7E54A14F5D

View file

@ -488,8 +488,8 @@ static char* run_shell(char *command)
return result;
} else {
err:
return string_copy("here we are");
if (result) free(result);
return string_copy("error running command");
if (result) free(result);
}
pclose(handle);