diff options
author | Martin Szulecki | 2013-09-27 13:05:27 +0200 |
---|---|---|
committer | Martin Szulecki | 2013-09-27 13:05:27 +0200 |
commit | fa2bbf32e424ffcb4f66cf5a92274032b88605fe (patch) | |
tree | f804b79bf33ea36a9c738bd77ec723b1c6943c86 | |
parent | a73880ed5b3d83cab93ac815140043731863e80b (diff) | |
download | libirecovery-fa2bbf32e424ffcb4f66cf5a92274032b88605fe.tar.gz libirecovery-fa2bbf32e424ffcb4f66cf5a92274032b88605fe.tar.bz2 |
libirecovery: Return "invalid input" instead of unknown error in irecv_getenv()
-rw-r--r-- | src/libirecovery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c index f26ae3f..1b547d1 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c @@ -1159,7 +1159,7 @@ irecv_error_t irecv_getenv(irecv_client_t client, const char* variable, char** v *value = NULL; if(variable == NULL) { - return IRECV_E_UNKNOWN_ERROR; + return IRECV_E_INVALID_INPUT; } memset(command, '\0', sizeof(command)); |