mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-05 09:20:29 +00:00
Fix returned value to 0
This commit is contained in:
parent
b6c96954c1
commit
12b3dfb29c
1 changed files with 1 additions and 1 deletions
|
@ -834,7 +834,7 @@ int LuaUuidV4(lua_State *L) {
|
|||
char *template = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";
|
||||
char *uuid = (char *)malloc(strlen(template) + 1);
|
||||
if (uuid == NULL) {
|
||||
return NULL; // Memory allocation failed
|
||||
return 0; // Memory allocation failed
|
||||
}
|
||||
|
||||
srand(time(NULL));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue