Skip to content

Commit 5c65262

Browse files
committed
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 <[email protected]>
1 parent 60de6b9 commit 5c65262

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

local.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2116,7 +2116,7 @@ struct iio_context * local_create_context(void)
21162116
if (WITH_LOCAL_CONFIG) {
21172117
ret = populate_context_attrs(ctx, "/etc/libiio.ini");
21182118
if (ret < 0)
2119-
goto err_context_destroy;
2119+
IIO_WARNING("Unable to read INI file: %d\n", ret);
21202120
}
21212121

21222122
uname(&uts);

0 commit comments

Comments
 (0)