Skip to content

Commit ec7299a

Browse files
committed
Fix a bug that global params are not parsed
1 parent ba8802b commit ec7299a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RepostConfirmationCancelerTalk/cb_config.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ static void parse_conf(char *data, struct config *conf)
9898
break;
9999
case '@':
100100
if (global) {
101-
if (line == "@WARNING_WHEN_CLOSE_DIALOG")
101+
if (strcmp(line, "@WARNING_WHEN_CLOSE_DIALOG") == 0)
102102
{
103103
conf->warning_when_close_dialog = 1;
104104
}
105-
if (line == "@CLOSE_ERR_CACHE_MISS_PAGE")
105+
if (strcmp(line, "@CLOSE_ERR_CACHE_MISS_PAGE") == 0)
106106
{
107107
conf->close_err_cache_miss_page = 1;
108108
}

0 commit comments

Comments
 (0)