From 5c65262cdb93be7792b840bfb69bcc29e4a283d1 Mon Sep 17 00:00:00 2001 From: Paul Cercueil Date: Wed, 6 Apr 2022 10:01:00 +0100 Subject: [PATCH] local: Ignore ill-formed INI files If the INI file is present but cannot be read, print a warning about it, but keep on creating the IIO context. Signed-off-by: Paul Cercueil --- local.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local.c b/local.c index ed8d50220..3eff2bd32 100644 --- a/local.c +++ b/local.c @@ -2116,7 +2116,7 @@ struct iio_context * local_create_context(void) if (WITH_LOCAL_CONFIG) { ret = populate_context_attrs(ctx, "/etc/libiio.ini"); if (ret < 0) - goto err_context_destroy; + IIO_WARNING("Unable to read INI file: %d\n", ret); } uname(&uts);