diff options
author | monty@mysql.com/narttu.mysql.fi <> | 2007-02-22 16:59:57 +0200 |
---|---|---|
committer | monty@mysql.com/narttu.mysql.fi <> | 2007-02-22 16:59:57 +0200 |
commit | e5cc397f33e6c9916043742194bbdc809e118905 (patch) | |
tree | 260c15e9d6f383c404ea95e9e68ef07f0eba2cea /cmd-line-utils | |
parent | 6946fa682fd6b0f90f17f1bd2bf1bdc9579c0fca (diff) | |
download | mariadb-git-e5cc397f33e6c9916043742194bbdc809e118905.tar.gz |
Fixed compiler warnings (for linux and win32 and win64)
Fixed a couple of usage of not initialized warnings (unlikely cases)
Diffstat (limited to 'cmd-line-utils')
-rw-r--r-- | cmd-line-utils/readline/xmalloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-line-utils/readline/xmalloc.c b/cmd-line-utils/readline/xmalloc.c index 698807addf9..848a3563fa9 100644 --- a/cmd-line-utils/readline/xmalloc.c +++ b/cmd-line-utils/readline/xmalloc.c @@ -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); } |