Fix return value on error

This commit is contained in:
Reyk Floeter 2018-05-08 09:48:30 +02:00
parent 4953fa418c
commit cb7edf897e

View file

@ -59,7 +59,7 @@ cloudinit(struct system_config *sc)
static int
cloudinit_fetch(struct system_config *sc)
{
int ret = 0;
int ret = -1;
char *str = NULL;
sc->sc_addr.ip = sc->sc_endpoint;