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:
parent
840453c14f
commit
641158aed9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user