Applied patch 0003-GetAllocationType-mark-some-members-as-static-and-a.patch

Author: php-coder

Ticket: http://apps.sourceforge.net/trac/cppcheck/ticket/321
This commit is contained in:
Daniel Marjamäki 2009-05-21 12:26:44 +02:00
parent eafb1f823c
commit 47e10b75e3
1 changed files with 21 additions and 21 deletions

View File

@ -70,7 +70,7 @@ CheckMemoryLeakClass::AllocType CheckMemoryLeakClass::GetAllocationType(const To
return No;
// Does tok2 point on "malloc", "strdup" or "kmalloc"..
const char *mallocfunc[] = {"malloc",
static const char * const mallocfunc[] = {"malloc",
"calloc",
"strdup",
"strndup",
@ -86,7 +86,7 @@ CheckMemoryLeakClass::AllocType CheckMemoryLeakClass::GetAllocationType(const To
}
// Does tok2 point on "g_malloc", "g_strdup", ..
const char *gmallocfunc[] = {"g_new",
static const char * const gmallocfunc[] = {"g_new",
"g_new0",
"g_try_new",
"g_try_new0",