summaryrefslogtreecommitdiff
path: root/libmysql
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2003-12-09 20:49:48 +0100
committerunknown <serg@serg.mylan>2003-12-09 20:49:48 +0100
commit7cfbf9e8f681eac207f8b37d12780f73ffa5dd70 (patch)
tree43401c44026dd8c5e5d1025bec6b87687b304e90 /libmysql
parente425b98a0129dd72c68fc995ee086fe68c0138dd (diff)
downloadmariadb-git-7cfbf9e8f681eac207f8b37d12780f73ffa5dd70.tar.gz
code cleanup after some reasoning
sql/mysqld.cc: code cleanup
Diffstat (limited to 'libmysql')
-rw-r--r--libmysql/libmysql.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c
index 6abc29d29f4..5fcc3ba5ee0 100644
--- a/libmysql/libmysql.c
+++ b/libmysql/libmysql.c
@@ -941,7 +941,8 @@ static void mysql_read_default_options(struct st_mysql_options *options,
options->rpl_parse= 1;
break;
case 27:
- options->max_allowed_packet= atoi(opt_arg);
+ if (opt_arg)
+ options->max_allowed_packet= atoi(opt_arg);
break;
default:
DBUG_PRINT("warning",("unknown option: %s",option[0]));