1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Log errors from eval_password

All errors were discarded to /dev/null if the error_ptr was set to
NULL.
This commit is contained in:
William Wennerström 2020-07-06 11:00:09 +02:00
parent 0a23de061a
commit deb0818a1b
No known key found for this signature in database
GPG Key ID: E1382990BEDD319B

View File

@ -201,9 +201,10 @@ account_eval_password(ProfAccount *account)
assert(account->eval_password != NULL);
gchar **output = NULL;
gchar **error = NULL;
gchar *argv[] = {"sh", "-c", account->eval_password, NULL};
if (!call_external(argv, &output, NULL)) {
if (!call_external(argv, &output, &error)) {
return FALSE;
}