From d9c988cc4f54a4c87259b1f2a252426076c23ccb Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Mon, 21 Nov 2011 17:35:32 +0300 Subject: [PATCH] db/function_ptr: clear the correct table This was a copy and paste bug. The intent was to clear the function_ptr table. Signed-off-by: Dan Carpenter --- smatch_scripts/db/fill_db_function_ptr.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smatch_scripts/db/fill_db_function_ptr.pl b/smatch_scripts/db/fill_db_function_ptr.pl index de6c9952..32426304 100755 --- a/smatch_scripts/db/fill_db_function_ptr.pl +++ b/smatch_scripts/db/fill_db_function_ptr.pl @@ -12,7 +12,7 @@ if (!defined($warns)) { my $db = DBI->connect("dbi:SQLite:smatch_db.sqlite", "", "", {RaiseError => 1, AutoCommit => 0}); -$db->do("delete from untrusted;"); +$db->do("delete from function_ptr;"); open(WARNS, "<$warns"); while () { -- 2.11.4.GIT