(linuxraw_input.c) Check for null pointer dereferences