Revision: 48449
http://brlcad.svn.sourceforge.net/brlcad/?rev=48449&view=rev
Author: bob1961
Date: 2012-01-11 22:40:38 +0000 (Wed, 11 Jan 2012)
Log Message:
-----------
Tweak bu_str_isprint to return 0 for empty strings.
Modified Paths:
--------------
brlcad/trunk/src/libbu/ctype.c
Modified: brlcad/trunk/src/libbu/ctype.c
===================================================================
--- brlcad/trunk/src/libbu/ctype.c 2012-01-11 22:39:44 UTC (rev 48448)
+++ brlcad/trunk/src/libbu/ctype.c 2012-01-11 22:40:38 UTC (rev 48449)
@@ -28,7 +28,7 @@
int
bu_str_isprint(const char *cp)
{
- if (cp == NULL)
+ if (cp == NULL || *cp == '\0')
return 0;
while (*cp != '\0' && isprint(*cp))
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|