From bf5812e40ccfe822e8c6e89f926983e70a2d7e23 Mon Sep 17 00:00:00 2001 From: Mark Walker Date: Sun, 31 May 2015 00:36:52 -0700 Subject: [PATCH] Initialize iniMachine --- src/gpx/gpx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpx/gpx.c b/src/gpx/gpx.c index e5619a2..a89e6fc 100644 --- a/src/gpx/gpx.c +++ b/src/gpx/gpx.c @@ -120,7 +120,7 @@ int gpx_set_machine(Gpx *gpx, const char *machine_type) // if there's a gpx->iniPath + "/" + machine->type + ".ini" load it // here recursively char machineIni[1024]; - machineIni[0]; + machineIni[0] = 0; int i = snprintf(machineIni, sizeof(machineIni), "%s/%s.ini", gpx->iniPath, machine->type); if (i > 0 && i < sizeof(machineIni)) { if (access(machineIni, R_OK) == SUCCESS) {