Browse Source

hotplug2: Make missing include files non fatal

SVN-Revision: 25414
Vasilis Tsiligiannis 15 năm trước cách đây
mục cha
commit
1ac5bff825
1 tập tin đã thay đổi với 11 bổ sung0 xóa
  1. 11 0
      package/hotplug2/patches/170-non_fatal_include.patch

+ 11 - 0
package/hotplug2/patches/170-non_fatal_include.patch

@@ -0,0 +1,11 @@
+--- a/parser/parser.c
++++ b/parser/parser.c
+@@ -578,7 +578,7 @@ int parser_file(const char *filename, st
+ 	ctx.lexer.fp = fopen(filename, "r");
+ 	if (ctx.lexer.fp == NULL) {
+ 		parser_clear(&ctx);
+-		return -1;
++		return 0;
+ 	}
+ 	ctx.lexer.filename = strdup(filename);
+