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.
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits