From b7b0e7b5bfefd51c8092ea54f262b18aebf78128 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 16 Aug 2016 18:49:11 +0200 Subject: 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 --- src/version.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/version.c') diff --git a/src/version.c b/src/version.c index 15e5aeec..e2f1c353 100644 --- a/src/version.c +++ b/src/version.c @@ -124,7 +124,7 @@ parse_version_number (const char *str, int *number) /* Parse the version string STR in the format MAJOR.MINOR.MICRO (for example, 9.3.2) and return the components in MAJOR, MINOR and MICRO as integers. The function returns the tail of the string that - follows the version number. This might be te empty string if there + follows the version number. This might be the empty string if there is nothing following the version number, or a patchlevel. The function returns NULL if the version string is not valid. */ static const char * -- cgit v1.2.3