control.c: fix 'val' uninitialized warning