LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File string-compare.diff of Package libapr1 (Project openSUSE:Factory)

Index: strings/apr_snprintf.c
===================================================================
--- strings/apr_snprintf.c.orig	2008-05-27 06:49:54.000000000 +0200
+++ strings/apr_snprintf.c	2008-06-15 15:09:15.465863000 +0200
@@ -1291,7 +1291,7 @@ APR_DECLARE(int) apr_vformatter(int (*fl
                 break;
             }
 
-            if (prefix_char != NUL && s != S_NULL && s != char_buf) {
+            if (prefix_char != NUL && strcmp(s, S_NULL) && s != char_buf) {
                 *--s = prefix_char;
                 s_len++;
             }