From: Pierre-Marc Fournier Date: Tue, 27 Oct 2009 22:33:15 +0000 (-0400) Subject: always initialize statically the .location field of struct marker to NULL X-Git-Tag: v1.9.1~848 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=12bb5a5f4eb614c4be28e862b9d78603b4626e46;p=lttng-ust.git always initialize statically the .location field of struct marker to NULL Constructors later write the real location value. --- diff --git a/libust/marker.h b/libust/marker.h index 4c6a703b..da3d30c8 100644 --- a/libust/marker.h +++ b/libust/marker.h @@ -94,11 +94,10 @@ struct marker { sizeof(#name)], \ 0, 0, 0, 0, marker_probe_cb, \ { __mark_empty_function, NULL}, \ - NULL, tp_name_str, tp_cb }; \ + NULL, tp_name_str, tp_cb, NULL }; \ asm (".section __marker_addr,\"aw\",@progbits\n\t" \ _ASM_PTR "%c[marker_struct], (1f)\n\t" \ ".previous\n\t" \ - "\n\t" \ "1:\n\t" \ :: [marker_struct] "i" (&__mark_##channel##_##name));\ save_registers(®s)