File coreutils-ptr_int_casts.patch of Package coreutils

Index: src/join.c
===================================================================
--- src/join.c.orig
+++ src/join.c
@@ -1335,7 +1335,7 @@ main (int argc, char **argv)
 
         case 't':
           {
-            char *newtab;
+            char *newtab = NULL;
             size_t newtablen;
             newtab = xstrdup (optarg);
 #if HAVE_MBRTOWC
@@ -1357,7 +1357,7 @@ main (int argc, char **argv)
               newtablen = 1;
             if (! newtab)
             {
-              newtab = '\n'; /* '' => process the whole line.  */
+              newtab = "\n"; /* '' => process the whole line.  */
             }
             else if (optarg[1])
               {
openSUSE Build Service is sponsored by