Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e82dae90 authored by Arnaud Lacombe's avatar Arnaud Lacombe
Browse files

kconfig: use the file's name of sourced file

parent 2e7a0918
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -304,9 +304,10 @@ void zconf_nextfile(const char *name)
	memset(buf, 0, sizeof(*buf));
	memset(buf, 0, sizeof(*buf));


	current_buf->state = YY_CURRENT_BUFFER;
	current_buf->state = YY_CURRENT_BUFFER;
	yyin = zconf_fopen(name);
	yyin = zconf_fopen(file->name);
	if (!yyin) {
	if (!yyin) {
		printf("%s:%d: can't open file \"%s\"\n", zconf_curname(), zconf_lineno(), name);
		printf("%s:%d: can't open file \"%s\"\n",
		    zconf_curname(), zconf_lineno(), file->name);
		exit(1);
		exit(1);
	}
	}
	yy_switch_to_buffer(yy_create_buffer(yyin, YY_BUF_SIZE));
	yy_switch_to_buffer(yy_create_buffer(yyin, YY_BUF_SIZE));