diff options
author | Werner Koch <[email protected]> | 2016-09-16 13:06:26 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2016-09-16 14:00:27 +0000 |
commit | 3d6340e8c59ee11a95e03fb213ad9b228be47833 (patch) | |
tree | 0972fd52980116b2f773a4d5dbed2fd0d029b57e /src/status-table.c | |
parent | python: Release the GIL during calls into GPGME. (diff) | |
download | gpgme-3d6340e8c59ee11a95e03fb213ad9b228be47833.tar.gz gpgme-3d6340e8c59ee11a95e03fb213ad9b228be47833.zip |
core: Map GPGME_STATUS_EOF to the empty string.
* src/status-table.c (_gpgme_status_to_string): Return "" for EOF.
* src/engine-gpg.c (read_status): Ditto. The old code accidently used
GPGME_STATUS_EOF which is the integer 0 and neiteyr NULL nor a string.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'src/status-table.c')
-rw-r--r-- | src/status-table.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/status-table.c b/src/status-table.c index f44a08fb..c9bf3577 100644 --- a/src/status-table.c +++ b/src/status-table.c @@ -178,6 +178,6 @@ _gpgme_status_to_string (gpgme_status_code_t code) for (i=0; i < DIM(status_table); i++) if (status_table[i].code == code) - return status_table[i].name; + return status_table[i].name? status_table[i].name : ""; return "status_code_lost"; } |