diff options
| author | 2013-09-27 13:05:27 +0200 | |
|---|---|---|
| committer | 2013-09-27 13:05:27 +0200 | |
| commit | fa2bbf32e424ffcb4f66cf5a92274032b88605fe (patch) | |
| tree | f804b79bf33ea36a9c738bd77ec723b1c6943c86 /src/libirecovery.c | |
| parent | a73880ed5b3d83cab93ac815140043731863e80b (diff) | |
| download | libirecovery-fa2bbf32e424ffcb4f66cf5a92274032b88605fe.tar.gz libirecovery-fa2bbf32e424ffcb4f66cf5a92274032b88605fe.tar.bz2 | |
libirecovery: Return "invalid input" instead of unknown error in irecv_getenv()
Diffstat (limited to 'src/libirecovery.c')
| -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 | |||
| 1159 | *value = NULL; | 1159 | *value = NULL; |
| 1160 | 1160 | ||
| 1161 | if(variable == NULL) { | 1161 | if(variable == NULL) { |
| 1162 | return IRECV_E_UNKNOWN_ERROR; | 1162 | return IRECV_E_INVALID_INPUT; |
| 1163 | } | 1163 | } |
| 1164 | 1164 | ||
| 1165 | memset(command, '\0', sizeof(command)); | 1165 | memset(command, '\0', sizeof(command)); |
