Use of uninitialized value in scratchpad