From 7b68f0ae528282801fa0982e234b1874ff260e44 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Wed, 29 Jan 2014 01:54:17 +0300 Subject: [PATCH] data_source: ignore fake assignments Don't record fake assignments in the database. Signed-off-by: Dan Carpenter --- smatch_data_source.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/smatch_data_source.c b/smatch_data_source.c index 6cb833a7..8fe3d20a 100644 --- a/smatch_data_source.c +++ b/smatch_data_source.c @@ -9,6 +9,7 @@ #include "smatch.h" #include "smatch_slist.h" +#include "smatch_extra.h" static int my_id; @@ -57,6 +58,8 @@ static char *get_source_assignment(struct expression *expr) return NULL; if (right->type != EXPR_CALL || right->fn->type != EXPR_SYMBOL) return NULL; + if (is_fake_call(right)) + return NULL; name = expr_to_str(right->fn); if (!name) return NULL; -- 2.11.4.GIT