core: Simplify setting of dummy versions.
authorWerner Koch <wk@gnupg.org>
Tue, 16 Aug 2016 16:49:11 +0000 (18:49 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 16 Aug 2016 16:49:11 +0000 (18:49 +0200)
commitb7b0e7b5bfefd51c8092ea54f262b18aebf78128
tree0be66ab1e638e1095491743cb182e37d77ced480
parent391e55411cda11446ca9de4dd0dc2b54d3e6fff5
core: Simplify setting of dummy versions.

* src/engine.c (_gpgme_engine_info_release): Do not assert but free
FILE_NAME.
(gpgme_get_engine_info): Provide default for VERSION and REQ_VERSION.
Use calloc instead of malloc.
(_gpgme_set_engine_info): Ditto.
* src/engine-assuan.c (llass_get_version): Return NULL.
(llass_get_req_version): Ditto.
* src/engine-spawn.c (engspawn_get_version): Ditto.
(engspawn_get_req_version): Ditto.
* src/engine-uiserver.c (uiserver_get_version): Ditto.
(uiserver_get_req_version): Ditto.

Signed-off-by: Werner Koch <wk@gnupg.org>
src/engine-assuan.c
src/engine-spawn.c
src/engine-uiserver.c
src/engine.c
src/version.c