]> git.cworth.org Git - notmuch/commit
notmuch setup: Exit if EOF is encountered at any prompt.
authorCarl Worth <cworth@cworth.org>
Tue, 1 Dec 2009 16:06:09 +0000 (08:06 -0800)
committerCarl Worth <cworth@cworth.org>
Tue, 1 Dec 2009 16:06:09 +0000 (08:06 -0800)
commiteb0cf86c7a9d5cda464d4d36a9cac66f26b5529d
tree140439cdd9d4d567f83ad4ac7747c40c1d2c5bb2
parent5f0b2ece161b16321792d9ff2f76bcc33a3b6b42
notmuch setup: Exit if EOF is encountered at any prompt.

If the user is explicitly providing EOF, then terminating the program
is the most likely desired thing to do. This also avoids undefined
behavior from continuing with an uninitialized response after ignoring
the return value of getline().
notmuch-setup.c