mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2025-12-10 07:44:41 +01:00
make the notification enabled by default && fix bug (review)
This commit is contained in:
parent
ed7eb20a1a
commit
a7bcf8df59
1 changed files with 4 additions and 2 deletions
6
config.c
6
config.c
|
|
@ -719,19 +719,21 @@ int get_global_config(struct config *conf)
|
|||
}
|
||||
if((error = uci_get_value(UCI_CPE_NOTIFY_PERIODIC_ENABLE,&value)) == CWMP_OK)
|
||||
{
|
||||
bool a = true;
|
||||
if(value != NULL)
|
||||
{
|
||||
if ((strcasecmp(value,"FALSE")==0) || (strcmp(value,"0")==0))
|
||||
{
|
||||
conf->periodic_notify_enable = false;
|
||||
a = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
conf->periodic_notify_enable = true;
|
||||
a = true;
|
||||
}
|
||||
free(value);
|
||||
value = NULL;
|
||||
}
|
||||
conf->periodic_notify_enable = a;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue