Fix return value on error

This commit is contained in:
Reyk Floeter 2018-05-08 09:48:30 +02:00
parent 4953fa418c
commit cb7edf897e
1 changed files with 1 additions and 1 deletions

View File

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