]> git.itanic.dy.fi Git - scan-pagemap/blobdiff - parse.c
parser: Fix the order of argumets for list_add()
[scan-pagemap] / parse.c
diff --git a/parse.c b/parse.c
index 386e50dab082c29b2163d2f41da2cae14f72ef7c..850b2a1a55938961f493e0969c69839d72c725e9 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -266,7 +266,7 @@ static int parse_pageframe(FILE *file, struct pageframe *pf_tree,
                        } else {
                                tmp = alloc_maplist();
                                tmp->map = map;
-                               list_add(&match->ml->list, &tmp->list);
+                               list_add(&tmp->list, &match->ml->list);
                        }
 
                        if (match->page_present)