Fix warning.
This commit is contained in:
parent
bdcb65bfce
commit
e1435dab2e
9
viewer.c
9
viewer.c
|
@ -1104,6 +1104,7 @@ static void
|
||||||
load_actions(void)
|
load_actions(void)
|
||||||
{
|
{
|
||||||
char kbdb[1024], buf[1024], text[1024], command[1024];
|
char kbdb[1024], buf[1024], text[1024], command[1024];
|
||||||
|
const char *p;
|
||||||
char *s;
|
char *s;
|
||||||
FILE *f;
|
FILE *f;
|
||||||
int n, opt;
|
int n, opt;
|
||||||
|
@ -1114,11 +1115,11 @@ load_actions(void)
|
||||||
|
|
||||||
/* FIXME - Should be fetched via IPC. */
|
/* FIXME - Should be fetched via IPC. */
|
||||||
|
|
||||||
s = getenv("EROOT");
|
p = getenv("EROOT");
|
||||||
if (!s)
|
if (!p)
|
||||||
s = DATADIR "/e16"; /* Default location */
|
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");
|
f = fopen(kbdb, "r");
|
||||||
if (!f)
|
if (!f)
|
||||||
|
|
Loading…
Reference in New Issue