question of uListSearch

"[email protected]" <[email protected]> Thu, 30 Apr 2009 07:51:20 -0000
Newsgroups gmane.text.clearsilver.general
Message-ID <[email protected]>
Message-ID: <[email protected]>
User-Agent: eGroups-EW/0.82
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Mailer: Yahoo Groups Message Poster
X-Yahoo-Post-IP: 222.247.56.11
X-Yahoo-Newman-Property: groups-compose
Sender: [email protected]
X-Yahoo-GPoster: ftfxycw0ewq9tjYG

Hi, my process core dump when I using uListSearch, i found that the 2st par=
ameter for bsearch SHOULD BE ul->items[0], or *ul->items in line 225 of uli=
st.c

return bsearch(key, ul->items, ul->num, sizeof(void *), compareFunc);




BTW, string_array_split() should judge doese strduped string is empty,

e.g. string_array_split(&list, "/home/bigmaliang", "/") will strdup a empty=
 string in line 235 of neo_str.c

    n =3D strdup(f);