commit | 91b349dec6f7c98a2c95dee27cc39cb6b8391ebc | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Wed Apr 07 11:50:45 2021 +0200 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Wed Apr 07 11:50:45 2021 +0200 |
tree | 3d01260f8ba78a606f5feb15bf008ee8739c6394 | |
parent | 8143bb49ba13890b87d67f128697638663fdb80e [diff] [blame] |
yanglint BUGFIX segmentation fault
diff --git a/tools/lint/cmd_searchpath.c b/tools/lint/cmd_searchpath.c index a94a343..529e05d 100644 --- a/tools/lint/cmd_searchpath.c +++ b/tools/lint/cmd_searchpath.c
@@ -73,7 +73,7 @@ const char * const *dirs = ly_ctx_get_searchdirs(*ctx); printf("List of the searchpaths:\n"); - for (uint32_t i = 0; dirs[0]; ++i) { + for (uint32_t i = 0; dirs[i]; ++i) { printf(" %s\n", dirs[i]); } goto cleanup;