config: garbage line number if file not found

If the file is not found, showing 0 rather than a garbage number is
mildly better.

Signed-off-by: Karl Palsson <karlp@etactica.com>
This commit is contained in:
Karl Palsson 2016-06-29 14:04:07 +00:00
parent 840453c14f
commit 641158aed9

View File

@ -475,7 +475,7 @@ int config__read(struct mosquitto__config *config, bool reload)
{
int rc = MOSQ_ERR_SUCCESS;
struct config_recurse cr;
int lineno;
int lineno = 0;
int len;
#ifdef WITH_BRIDGE
int i;