mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Fixed compiler warnings (for linux and win32 and win64)
Fixed a couple of usage of not initialized warnings (unlikely cases)
This commit is contained in:
@ -57,7 +57,7 @@ xmalloc (bytes)
|
||||
|
||||
temp = malloc (bytes);
|
||||
if (temp == 0)
|
||||
memory_error_and_abort ("xmalloc");
|
||||
memory_error_and_abort ((char*) "xmalloc");
|
||||
return (temp);
|
||||
}
|
||||
|
||||
@ -71,7 +71,7 @@ xrealloc (pointer, bytes)
|
||||
temp = pointer ? realloc (pointer, bytes) : malloc (bytes);
|
||||
|
||||
if (temp == 0)
|
||||
memory_error_and_abort ("xrealloc");
|
||||
memory_error_and_abort ((char*) "xrealloc");
|
||||
return (temp);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user