kcore.c: fixed mis-named variable