|
From: <sv...@va...> - 2013-08-22 19:18:21
|
florian 2013-08-22 19:18:08 +0000 (Thu, 22 Aug 2013)
New Revision: 480
Log:
Fix code snippet. 'static' is a keyword in C and cannot be used
as a variable name.
Modified files:
trunk/docs/manual/faq.html
Modified: trunk/docs/manual/faq.html (+2 -2)
===================================================================
--- trunk/docs/manual/faq.html 2013-08-16 16:15:37 +00:00 (rev 479)
+++ trunk/docs/manual/faq.html 2013-08-22 19:18:08 +00:00 (rev 480)
@@ -559,13 +559,13 @@
<td align="left" valign="top">
<b>Why doesn't Memcheck find the array overruns in this
program?</b><pre class="programlisting">
-int static[5];
+int global[5];
int main(void)
{
int stack[5];
- static[5] = 0;
+ global[5] = 0;
stack [5] = 0;
return 0;
|