OSSP CVS Repository

ossp - Check-in [6004]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 6004
Date: 2008-Jun-06 14:29:20 (local)
2008-Jun-06 12:29:20 (UTC)
User:rse
Branch:
Comment: use a static value for comparing against the null string
Tickets:
Inspections:
Files:
ossp-pkg/str/str_format.c      1.31 -> 1.32     2 inserted, 1 deleted

ossp-pkg/str/str_format.c 1.31 -> 1.32

--- str_format.c 2005/10/03 07:34:43     1.31
+++ str_format.c 2008/06/06 12:29:20     1.32
@@ -110,7 +110,8 @@
 #endif
 
 /* a few handy defines */
-#define S_NULL          "(NULL)"
+static char str_null[]  = "(NULL)";
+#define S_NULL          str_null
 #define S_NULL_LEN      6
 #define FLOAT_DIGITS    6
 #define EXPONENT_LENGTH 10

CVSTrac 2.0.1