util: fix list_is_singular()
authorTimothy Arceri <timothy.arceri@collabora.com>
Wed, 11 Jan 2017 04:13:35 +0000 (15:13 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Thu, 12 Jan 2017 02:58:32 +0000 (13:58 +1100)
commit0252ba26c545a9752b158470cb66741df0f222ce
tree010754e3da0e8d5445e2c9c3c5486f3e66438a7f
parent5857858aa6c869f4eed31029a376876f50bd6a62
util: fix list_is_singular()

Currently its dependant on the user calling and checking the result
of list_empty() before using the result of list_is_singular().

Cc: "13.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/util/list.h