3
0
forked from pool/coreutils
coreutils/coreutils-ptr_int_casts.patch
2012-04-23 07:12:18 +00:00

23 lines
750 B
Diff

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])
{