1
0
mirror of https://github.com/cc65/cc65.git synced 2024-09-29 17:56:21 +00:00

Allow to pass NULL pointers to FreeStrBuf.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5597 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2012-03-10 22:12:44 +00:00
parent d06625075d
commit e39d1e8d10

View File

@ -6,7 +6,7 @@
/* */
/* */
/* */
/* (C) 2001-2008 Ullrich von Bassewitz */
/* (C) 2001-2012, Ullrich von Bassewitz */
/* Roemerstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
@ -115,9 +115,12 @@ StrBuf* NewStrBuf (void)
void FreeStrBuf (StrBuf* B)
/* Free a string buffer */
{
/* Allow NULL pointers */
if (B) {
SB_Done (B);
xfree (B);
}
}