mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-01-07 17:09:58 +01:00
Remove quotes from config values if found.
This commit is contained in:
parent
0a101b48c3
commit
b694f85461
9
Conf.cpp
9
Conf.cpp
|
|
@ -273,7 +273,14 @@ bool CConf::read()
|
|||
char* value = ::strtok(NULL, "\r\n");
|
||||
if (value == NULL)
|
||||
continue;
|
||||
|
||||
|
||||
// Remove quotes from the value
|
||||
size_t len = ::strlen(value);
|
||||
if (len > 1U && *value == '"' && value[len - 1U] == '"') {
|
||||
value[len - 1U] = '\0';
|
||||
value++;
|
||||
}
|
||||
|
||||
if (section == SECTION_GENERAL) {
|
||||
if (::strcmp(key, "Callsign") == 0) {
|
||||
// Convert the callsign to upper case
|
||||
|
|
|
|||
Loading…
Reference in a new issue