openSUSE / libsolv

Library for solving packages and reading repositories
http://en.opensuse.org/openSUSE:Libzypp_satsolver
Other
509 stars 151 forks source link

Fix a couple small static analysis findings for uninitialized structs #557

Closed dcantrell closed 3 months ago

dcantrell commented 3 months ago

The memset() on the KeyValue is more explicit even though if you trace the code you will see it fills out the struct. However, it's possible that not every struct member will be initialized and adding the memset() makes things more obvious and appeases the static analyzer.

The queue_init() appeared to just be missing.

mlschroe commented 3 months ago

Thanks!