Fix pointer initialization bug

This commit is contained in:
Kurt Zeilenga 2002-02-12 19:18:39 +00:00
parent 2f6e801ab1
commit d88f1757ef

View file

@ -117,9 +117,11 @@ do_modify(
}
mod = (Modifications *) ch_malloc( sizeof(Modifications) );
mod->sml_op = mop;
mod->sml_type = tmp.sml_type;
mod->sml_bvalues = tmp.sml_bvalues;
mod->sml_desc = NULL;
mod->sml_next =NULL;
*modtail = mod;
switch( mop ) {
@ -166,7 +168,6 @@ do_modify(
}
}
mod->sml_op = mop;
modtail = &mod->sml_next;
}
*modtail = NULL;