Re: [Libosinfo] [osinfo-db-tools] Fix build with clang

2017-04-18 Thread Daniel P. Berrange
On Sun, Apr 16, 2017 at 04:26:15PM +0400, Roman Bogorodskiy wrote: > The osinfo_db_import_create_reg() function implements error handling > via jumping to cleanup and returning, however, this way the return > value is not initialised. This breaks build with clang and probably > could lead to an und

[Libosinfo] [osinfo-db-tools] Fix build with clang

2017-04-16 Thread Roman Bogorodskiy
The osinfo_db_import_create_reg() function implements error handling via jumping to cleanup and returning, however, this way the return value is not initialised. This breaks build with clang and probably could lead to an undefined behavior for users of this function. Fix by initialising ret with -