From 272e7bddebcc5f359eae3c743c6065f85c7e7b05 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Mon, 15 Feb 2010 09:55:00 +0300 Subject: [PATCH] Add quotes around string literals in smatch output. Signed-off-by: Dan Carpenter --- smatch_helper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/smatch_helper.c b/smatch_helper.c index 6a7b34d3..05adbcb4 100644 --- a/smatch_helper.c +++ b/smatch_helper.c @@ -188,7 +188,9 @@ static void __get_variable_from_expr(struct symbol **sym_ptr, char *buf, return; } case EXPR_STRING: + append(buf, "\"", len); append(buf, expr->string->data, len); + append(buf, "\"", len); return; case EXPR_CALL: { struct expression *tmp; -- 2.11.4.GIT