From fa2bbf32e424ffcb4f66cf5a92274032b88605fe Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Fri, 27 Sep 2013 13:05:27 +0200 Subject: libirecovery: Return "invalid input" instead of unknown error in irecv_getenv() --- src/libirecovery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libirecovery.c') 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)); -- cgit v1.1-32-gdbae