summaryrefslogtreecommitdiff
path: root/extra/comp_err.c
diff options
context:
space:
mode:
authoranjuta@arthur.local <>2004-12-14 01:54:16 +0200
committeranjuta@arthur.local <>2004-12-14 01:54:16 +0200
commita045161e5b12697e1f7259d05f4fb63c9d240e66 (patch)
tree3c7e9bf79f20247dcb163ed6b61b5242fd9cbf63 /extra/comp_err.c
parent53db34f9925605d9e948c199c373fa68bf6b01ee (diff)
downloadmariadb-git-a045161e5b12697e1f7259d05f4fb63c9d240e66.tar.gz
Added pathes to mysqld_error.h and sql_state.h; fixed segfault bug;
Diffstat (limited to 'extra/comp_err.c')
-rw-r--r--extra/comp_err.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/extra/comp_err.c b/extra/comp_err.c
index fb5da3a066a..9bd0a1ec7a2 100644
--- a/extra/comp_err.c
+++ b/extra/comp_err.c
@@ -156,10 +156,8 @@ int main(int argc, char *argv[])
uint row_count;
struct errors *error_head;
struct languages *lang_head;
-
DBUG_ENTER("main");
- LINT_INIT(error_head);
- LINT_INIT(lang_head);
+
charsets_dir= DEFAULT_CHARSET_DIR;
if (get_options(&argc, &argv))
DBUG_RETURN(1);
@@ -751,13 +749,10 @@ static struct errors *parse_error_string(char *str, int er_count)
static struct languages *parse_charset_string(char *str)
{
- struct languages *head, *new_lang;
-
+ struct languages *head=0, *new_lang;
DBUG_ENTER("parse_charset_string");
DBUG_PRINT("enter", ("str: %s", str));
- LINT_INIT(head);
-
/* skip over keyword */
str= find_end_of_word(str);
if (!*str)