summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2017-08-28 12:21:03 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2017-08-28 12:21:03 +0100
commit41f30992aa92308a93c46fd8bdd80971e6e5e7e0 (patch)
tree9a1f4ade4e6f9b3d8ae7c881df610eb574c7ad15 /utils
parentba0283f52694447710f483c9355e9432e1e2f9e3 (diff)
downloadnetsurf-41f30992aa92308a93c46fd8bdd80971e6e5e7e0.tar.gz
netsurf-41f30992aa92308a93c46fd8bdd80971e6e5e7e0.tar.bz2
Messages: Return the unknown message if we get to the unhandled errorcode.
We shouldn't get there though.
Diffstat (limited to 'utils')
-rw-r--r--utils/messages.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/messages.c b/utils/messages.c
index bca1b47b0..0ff90b708 100644
--- a/utils/messages.c
+++ b/utils/messages.c
@@ -452,6 +452,7 @@ const char *messages_get_errorcode(nserror code)
* never get here.
*/
assert(0);
+ return messages_get_ctx("Unknown", messages_hash);
}