Commit 4291c0d1 authored by Benoit Favre's avatar Benoit Favre
Browse files

fix uninitialized ctx->help variables

parent 1dd223d1
......@@ -27,6 +27,7 @@ cff_cutoff_context *cff_cutoff_context_new(void)
{
cff_cutoff_context *ctx = (cff_cutoff_context *)memalloc(sizeof(cff_cutoff_context));
ctx->help = 0;
ctx->verbose = 0;
ctx->program_name = NULL;
ctx->vocabs_filename = NULL;
......
......@@ -19,6 +19,7 @@ perceptron_context *perceptron_context_new(void)
{
perceptron_context *ctx = (perceptron_context *)memalloc(sizeof(perceptron_context));
ctx->help = 0;
ctx->verbose = 0;
ctx->program_name = NULL;
ctx->perc_model_filename = NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment