File coreutils-ptr_int_casts.patch of Package coreutils

Index: src/join.c
===================================================================
--- src/join.c.orig	2012-04-16 16:54:22.032279169 +0200
+++ src/join.c	2012-04-16 16:54:22.163275636 +0200
@@ -1320,7 +1320,7 @@ main (int argc, char **argv)
 
         case 't':
           {
-            char *newtab;
+            char *newtab = NULL;
             size_t newtablen;
             newtab = xstrdup (optarg);
 #if HAVE_MBRTOWC
@@ -1342,7 +1342,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