Begone ERR_NO_MEMORY!

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@325 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
David Reid 2002-07-19 01:36:28 +00:00
parent c099d735dd
commit e76a020d33

View File

@ -252,7 +252,7 @@ static int user_copy_strings_array(char **strings, int strc, char ***kstrings)
lstrings = (char **)kmalloc((strc + 1) * sizeof(char *)); lstrings = (char **)kmalloc((strc + 1) * sizeof(char *));
if (lstrings == NULL){ if (lstrings == NULL){
return ERR_NO_MEMORY; return ENOMEM;
} }
// scan all strings and copy to kernel space // scan all strings and copy to kernel space
@ -274,7 +274,7 @@ static int user_copy_strings_array(char **strings, int strc, char ***kstrings)
lstrings[cnt] = (char *)kstrdup(buf); lstrings[cnt] = (char *)kstrdup(buf);
if (lstrings[cnt] == NULL){ if (lstrings[cnt] == NULL){
err = ERR_NO_MEMORY; err = ENOMEM;
goto error; goto error;
} }
} }