Fix check of sysconf return in get_name/username_from_passwd_file
authorMatthias Guedemann <matthias.guedemann@ovgu.de>
Wed, 25 May 2011 12:27:55 +0000 (14:27 +0200)
committerCarl Worth <cworth@cworth.org>
Thu, 26 May 2011 22:13:46 +0000 (15:13 -0700)
commit3185df17eb6c7621df3945841af58f2b19facc40
tree849b5cf52da47ce97e30b0ef8a2f1fd0f419c171
parenteb4e0ea2ab4d2515ab9575ee99ad024d03765199
Fix check of sysconf return in get_name/username_from_passwd_file

Fix to check the value returned by sysconf(_SC_GETPW_R_SIZE_MAX)
before using the value.

This fixes a core dump on DragonFlyBSD where this function returns -1.
notmuch-config.c