Skip to content
Snippets Groups Projects
Commit 4291c0d1 authored by Benoit Favre's avatar Benoit Favre
Browse files

fix uninitialized ctx->help variables

parent 1dd223d1
No related branches found
No related tags found
1 merge request!10fix uninitialized ctx->help variables
...@@ -27,6 +27,7 @@ cff_cutoff_context *cff_cutoff_context_new(void) ...@@ -27,6 +27,7 @@ cff_cutoff_context *cff_cutoff_context_new(void)
{ {
cff_cutoff_context *ctx = (cff_cutoff_context *)memalloc(sizeof(cff_cutoff_context)); cff_cutoff_context *ctx = (cff_cutoff_context *)memalloc(sizeof(cff_cutoff_context));
ctx->help = 0;
ctx->verbose = 0; ctx->verbose = 0;
ctx->program_name = NULL; ctx->program_name = NULL;
ctx->vocabs_filename = NULL; ctx->vocabs_filename = NULL;
......
...@@ -19,6 +19,7 @@ perceptron_context *perceptron_context_new(void) ...@@ -19,6 +19,7 @@ perceptron_context *perceptron_context_new(void)
{ {
perceptron_context *ctx = (perceptron_context *)memalloc(sizeof(perceptron_context)); perceptron_context *ctx = (perceptron_context *)memalloc(sizeof(perceptron_context));
ctx->help = 0;
ctx->verbose = 0; ctx->verbose = 0;
ctx->program_name = NULL; ctx->program_name = NULL;
ctx->perc_model_filename = NULL; ctx->perc_model_filename = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment