summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libirecovery.c2
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));