File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -453,9 +453,8 @@ void string_instrumentationt::do_format_string_read(
453
453
format_ass->make_assertion (is_zero_string (arguments[1 ]));
454
454
format_ass->source_location =target->source_location ;
455
455
format_ass->source_location .set_property_class (" string" );
456
- std::string comment (" zero-termination of format string of " );
457
- comment += function_name;
458
- format_ass->source_location .set_comment (comment);
456
+ format_ass->source_location .set_comment (
457
+ " zero-termination of format string of " + function_name);
459
458
460
459
for (std::size_t i=2 ; i<arguments.size (); i++)
461
460
{
@@ -468,9 +467,8 @@ void string_instrumentationt::do_format_string_read(
468
467
goto_programt::targett assertion=dest.add_instruction ();
469
468
assertion->source_location =target->source_location ;
470
469
assertion->source_location .set_property_class (" string" );
471
- std::string comment (" zero-termination of string argument of " );
472
- comment += function_name;
473
- assertion->source_location .set_comment (comment);
470
+ assertion->source_location .set_comment (
471
+ " zero-termination of string argument of " + function_name);
474
472
475
473
exprt temp (arg);
476
474
You can’t perform that action at this time.
0 commit comments