Skip to content

Commit

Permalink
local: Ignore ill-formed INI files
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
pcercuei committed Apr 6, 2022
1 parent 60de6b9 commit 5c65262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion local.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5c65262

Please sign in to comment.