coreutils/coreutils-ptr_int_casts.patch

23 lines
750 B
Diff
Raw Normal View History

Index: src/join.c
===================================================================
--- src/join.c.orig 2010-11-11 16:29:37.000000000 +0100
+++ src/join.c 2010-11-11 17:04:33.776501344 +0100
@@ -1273,7 +1273,7 @@ main (int argc, char **argv)
case 't':
{
- char *newtab;
+ char *newtab = NULL;
size_t newtablen;
newtab = xstrdup (optarg);
#if HAVE_MBRTOWC
@@ -1295,7 +1295,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])
{