]> git.ipfire.org Git - thirdparty/kmod.git/commit - libkmod/libkmod-list.c
fix kmod_list_prev().
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Sat, 17 Dec 2011 00:27:02 +0000 (22:27 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Sat, 17 Dec 2011 21:43:11 +0000 (19:43 -0200)
commit2a70a5d4e0e62313a905378d463bc5857c5eef0b
tree320f640e5d877937c094c12446fb301ba23dce22
parent1c52260048792561160a75a2ce62217e98cd381a
fix kmod_list_prev().

kmod_list_prev() should return NULL if the current element is the
head, not if the previous element is the head. This was likely a copy
& paste error from kmod_list_next().
libkmod/libkmod-list.c