Change eFree() to simply ignore NULL pointers instead of asserting.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4857 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
95d82159a8
commit
2eea747db2
@ -6,6 +6,8 @@
|
||||
* src/win32.c:
|
||||
Change the limit for the command line length when executing commands
|
||||
to a maximum of 32768 characters (closes #2979697).
|
||||
* tagmanager/ctags.c:
|
||||
Change eFree() to simply ignore NULL pointers instead of asserting.
|
||||
|
||||
|
||||
2010-04-22 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
||||
|
@ -373,8 +373,8 @@ extern void *eRealloc (void *const ptr, const size_t size)
|
||||
|
||||
extern void eFree (void *const ptr)
|
||||
{
|
||||
Assert (ptr != NULL);
|
||||
free (ptr);
|
||||
if (ptr != NULL)
|
||||
free (ptr);
|
||||
}
|
||||
|
||||
extern void toLowerString (char* str)
|
||||
|
Loading…
x
Reference in New Issue
Block a user