mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
make stream_catString work with null ptr
This commit is contained in:
parent
ecd6d81228
commit
e66ddc3765
1 changed files with 4 additions and 2 deletions
|
@ -248,8 +248,10 @@ mem_stream_putBytes( XWStreamCtxt* p_sctx, const void* whence,
|
|||
static void
|
||||
mem_stream_catString( XWStreamCtxt* p_sctx, const char* whence )
|
||||
{
|
||||
if ( !!whence ) {
|
||||
XP_U16 len = XP_STRLEN( whence );
|
||||
mem_stream_putBytes( p_sctx, (void*)whence, len );
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue