mirror of
https://github.com/g4klx/DMRGateway.git
synced 2026-02-06 23:44:22 +01:00
Fixes configuration bug; when "Symbol=" value contains a valid APRS literal "#", it was parsed as a comment and not honored (now has more strict checking).
This commit is contained in:
parent
ac2f19c692
commit
ff4e8a9507
4
Conf.cpp
4
Conf.cpp
|
|
@ -262,8 +262,8 @@ bool CConf::read()
|
|||
char *p;
|
||||
|
||||
// if value is not quoted, remove after # (to make comment)
|
||||
if ((p = strchr(value, '#')) != NULL)
|
||||
*p = '\0';
|
||||
if ((p = strchr(value, '#')) != NULL && p == value)
|
||||
*p = '\0';
|
||||
|
||||
// remove trailing tab/space
|
||||
for (p = value + strlen(value) - 1U; p >= value && (*p == '\t' || *p == ' '); p--)
|
||||
|
|
|
|||
Loading…
Reference in a new issue