Re: [Fwd: [Kannel 0000077]: gwlib/dict.c seems to loose entries in the Dict structure]
Stipe Tolj <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Organization | Wapme Systems AG |
| Message-ID | <[email protected]> |
Alexander Malysh wrote: > > Hi Stipe, > > i hope not ;) > It's pretty simple. You use in your test rand. The rand can not generate > really unique keys. So if you key equal one which already stored in the dict > , then old key will be overwritten with new one. Key _must_ be always unique. > Just try attached patch for ur test_dict.c... ooops, good hint Alex!!! Stipe [email protected] ------------------------------------------------------------------- Wapme Systems AG Vogelsanger Weg 80 40470 Düsseldorf Tel: +49-211-74845-0 Fax: +49-211-74845-299 E-Mail: [email protected] Internet: http://www.wapme-systems.de ------------------------------------------------------------------- wapme.net - wherever you are