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;