mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
xz: Make sure that message_strm() can never return NULL.
This commit is contained in:
parent
d09c5753e3
commit
68b83f252d
1 changed files with 5 additions and 2 deletions
|
@ -833,10 +833,13 @@ message_strm(lzma_ret code)
|
||||||
case LZMA_STREAM_END:
|
case LZMA_STREAM_END:
|
||||||
case LZMA_GET_CHECK:
|
case LZMA_GET_CHECK:
|
||||||
case LZMA_PROG_ERROR:
|
case LZMA_PROG_ERROR:
|
||||||
return _("Internal error (bug)");
|
// Without "default", compiler will warn if new constants
|
||||||
|
// are added to lzma_ret, it is not too easy to forget to
|
||||||
|
// add the new constants to this function.
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
return _("Internal error (bug)");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue