aboutsummaryrefslogtreecommitdiffstats
path: root/asm/preproc.c
diff options
context:
space:
mode:
Diffstat (limited to 'asm/preproc.c')
-rw-r--r--asm/preproc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/asm/preproc.c b/asm/preproc.c
index 15d8bbaf..9d16d539 100644
--- a/asm/preproc.c
+++ b/asm/preproc.c
@@ -1496,15 +1496,12 @@ enum incopen_mode {
static FILE *inc_fopen_search(const char *file, char **slpath,
enum incopen_mode omode, enum file_flags fmode)
{
- const struct strlist_entry *ip = NULL;
+ const struct strlist_entry *ip = strlist_head(ipath_list);
FILE *fp;
const char *prefix = "";
char *sp;
bool found;
- if (ipath_list)
- ip = ipath_list->head;
-
while (1) {
sp = nasm_catfile(prefix, file);
if (omode == INC_PROBE) {