sqlite may set errno, reset it

This commit is contained in:
Enno Rehling 2017-12-23 18:28:51 +01:00
parent 1b13f6119b
commit 4752984e33

View file

@ -35,6 +35,7 @@
#include <util/message.h> #include <util/message.h>
#include <races/races.h> #include <races/races.h>
#include <errno.h>
#include <stdlib.h> #include <stdlib.h>
void game_done(void) void game_done(void)
@ -65,6 +66,7 @@ void game_done(void)
void game_init(void) void game_init(void)
{ {
dblib_open(); dblib_open();
errno = 0;
kernel_init(); kernel_init();
register_triggers(); register_triggers();
register_xmas(); register_xmas();