Fix build warning

pull/1529/head
Mike Black W9MDB 2024-03-14 17:09:36 -05:00
rodzic 789d863f97
commit 96ec37a276
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -999,10 +999,10 @@ int HAMLIB_API rig_open(RIG *rig)
{ {
rig_debug(RIG_DEBUG_VERBOSE, "%s: cwd=%s\n", __func__, cwd); rig_debug(RIG_DEBUG_VERBOSE, "%s: cwd=%s\n", __func__, cwd);
char *path = calloc(1, 4096); char *path = calloc(1, 4096);
extern char *settings_file; extern char settings_file[4096];
const char *xdgpath = getenv("XDG_CONFIG_HOME"); const char *xdgpath = getenv("XDG_CONFIG_HOME");
settings_file = "hamlib_settings"; strcpy(settings_file,"hamlib_settings");
if (xdgpath) if (xdgpath)
{ {