summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorunknown <istruewing@chilla.local>2007-04-24 10:40:23 +0200
committerunknown <istruewing@chilla.local>2007-04-24 10:40:23 +0200
commitac0fb49f187d05747ea2a834f310cec2f4c8a27f (patch)
treed9a5bde6364dbf10780e0d3fd10e8f14f079c392 /mysys
parent2b14696099ef00d539be3375e01eaf531da53039 (diff)
downloadmariadb-git-ac0fb49f187d05747ea2a834f310cec2f4c8a27f.tar.gz
WL#2936 - Falcon & MySQL plugin interface: server variables
Added initialization for the plugin structure created in plugin_add(). Made a correct argument vector in mysql_install_plugin(): handle_options() assumes that arg0 (program name) always exists. mysys/my_getopt.c: WL#2936 - Falcon & MySQL plugin interface: server variables Added DBUG_ASSERTs. handle_options() assumes that arg0 (program name) always exists. plugin/fulltext/plugin_example.c: WL#2936 - Falcon & MySQL plugin interface: server variables Extended the fulltext parser example plugin with system variables.
Diffstat (limited to 'mysys')
-rw-r--r--mysys/my_getopt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mysys/my_getopt.c b/mysys/my_getopt.c
index 4573d27555a..dd2663970ee 100644
--- a/mysys/my_getopt.c
+++ b/mysys/my_getopt.c
@@ -111,6 +111,9 @@ int handle_options(int *argc, char ***argv,
int error, i;
LINT_INIT(opt_found);
+ /* handle_options() assumes arg0 (program name) always exists */
+ DBUG_ASSERT(argc && *argc >= 1);
+ DBUG_ASSERT(argv && *argv);
(*argc)--; /* Skip the program name */
(*argv)++; /* --- || ---- */
init_variables(longopts);