Code

wreadln: return NULL instead of empty string
authorMax Kellermann <max@duempel.org>
Fri, 7 Nov 2008 15:17:21 +0000 (16:17 +0100)
committerMax Kellermann <max@duempel.org>
Fri, 7 Nov 2008 15:17:21 +0000 (16:17 +0100)
commit521a026319775913bf828aa1c2de5ce5d717811c
tree11636d22a4fc7a10ab92a8fdda0286d1c66d8699
parent3eca95ac1cb786d1aef59fd141d75661903c039a
wreadln: return NULL instead of empty string

No wreadln() caller cares about an empty string.  Simplify the callers
by returning NULL instead of an allocated empty string.  This fixes
several memory leaks.
src/screen_play.c
src/screen_search.c
src/screen_utils.c
src/wreadln.c