Fix parsing of auto-generated config file

When starting with empty config file, saving it by 'write file',
and then re-starting osmo-cscn, it would complain:

Error occurred during reading below line:
 long name Osmocom Circuit-Switched Core Network

The problem is that the vty parser is configured to expect a single
token and not a list of tokens here, but we initialize the default value
with multiple words (which are treated as separate token).
This commit is contained in:
Harald Welte
2016-04-30 22:04:50 +02:00
parent 0991c684d3
commit 5b3fd465d1

View File

@@ -240,7 +240,7 @@ struct gsm_network *cscn_network_init(void *ctx,
if (!net)
return NULL;
net->name_long = talloc_strdup(net, "Osmocom Circuit-Switched Core Network");
net->name_long = talloc_strdup(net, "OsmoCSCN");
net->name_short = talloc_strdup(net, "OsmoCSCN");
return net;