[lcdproc] What to do with NULL-functions ?

Robin Adams robin@adams-online.de
Fri, 28 Sep 2001 08:58:10 +0200


Hi !
It seems the current LCDproc silently segfaults with the STV5730 driver.
I traced it down to this line in input.c:

  if ((key = lcd_ptr->getkey ()) == 0)
		return 0;

A NULL pointer is dereference here. Not so good.
Am I supposed to add seven dummy functions to my
driver so that no NULL function pointers occur or
should I fix that so that it cares about NULL
pointers ?

bye,
Robin Adams
robin@adams-online.de



-----------------------------------------------------------
To unsubscribe from this list send a blank message to
lcdproc-unsubscribe@lists.omnipotent.net