core/misc: Mark a few local variable settings safe

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>