Fix warning.

master
Kim Woelders 6 years ago
parent bdcb65bfce
commit e1435dab2e
  1. 9
      viewer.c

@ -1104,6 +1104,7 @@ static void
load_actions(void)
{
char kbdb[1024], buf[1024], text[1024], command[1024];
const char *p;
char *s;
FILE *f;
int n, opt;
@ -1114,11 +1115,11 @@ load_actions(void)
/* FIXME - Should be fetched via IPC. */
s = getenv("EROOT");
if (!s)
s = DATADIR "/e16"; /* Default location */
p = getenv("EROOT");
if (!p)
p = DATADIR "/e16"; /* Default location */
snprintf(kbdb, sizeof(kbdb), "%s/config/e16keyedit.db", s);
snprintf(kbdb, sizeof(kbdb), "%s/config/e16keyedit.db", p);
f = fopen(kbdb, "r");
if (!f)

Loading…
Cancel
Save