gif: Ensure we never pass NSERROR_OK to error broadcast

This commit is contained in:
Michael Drake 2022-11-04 13:52:17 +00:00
parent afbd9cd5e8
commit 877bc2ce13

View File

@ -68,9 +68,6 @@ static inline nserror gif__nsgif_error_to_ns(nsgif_error gif_res)
nserror err;
switch (gif_res) {
case NSGIF_OK:
err = NSERROR_OK;
break;
case NSGIF_ERR_OOM:
err = NSERROR_NOMEM;
break;