diff options
| author | Andreas Schwab <schwab@linux-m68k.org> | 2009-05-02 11:32:42 +0000 |
|---|---|---|
| committer | Andreas Schwab <schwab@linux-m68k.org> | 2009-05-02 11:32:42 +0000 |
| commit | 409ea3a1dd530feabeb8f7f21dfd9c4aa2eb7a43 (patch) | |
| tree | cf47e5654ec7ee44dcd017c098847eca580067e5 /src/coding.c | |
| parent | 36fc09321bce7286ce378c45382a0a4773d69a9d (diff) | |
(record_conversion_result): Don't modify
Vlast_code_conversion_error for successful result.
(alloc_destination): Don't clobber conversion result. (Bug#1650)
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c index d374ca8b476..23690bc753b 100644 --- a/src/coding.c +++ b/src/coding.c @@ -992,6 +992,8 @@ record_conversion_result (struct coding_system *coding, case CODING_RESULT_INSUFFICIENT_MEM: Vlast_code_conversion_error = Qinsufficient_memory; break; + case CODING_RESULT_SUCCESS: + break; default: Vlast_code_conversion_error = intern ("Unknown error"); } @@ -1203,7 +1205,6 @@ alloc_destination (coding, nbytes, dst) } else coding_alloc_by_realloc (coding, nbytes); - record_conversion_result (coding, CODING_RESULT_SUCCESS); coding_set_destination (coding); dst = coding->destination + offset; return dst; |
