shafreeck / cetcd

Cetcd is a C client library for etcd with full features support
Apache License 2.0
69 stars 39 forks source link

array_index #34

Closed kinsu closed 8 years ago

kinsu commented 8 years ago

at cetcd.c during cetcd_del_watcher code checks if index is valid (i,e if if the watcher was deleted before) 318 if (watcher && index > 0) but as far as i understood index (which is set from cetcd.317 watcher->array_index) can be in zero position. shouldn't this changed to index >= 0 ?

shafreeck commented 8 years ago

@kinsu Yes, you are right, it is a bug here. Thanks very much for you feedback.

kinsu commented 8 years ago

thx for the update!