2010-11-15 16:52:55 +00:00
|
|
|
Index: src/join.c
|
|
|
|
===================================================================
|
2013-01-22 14:08:43 +00:00
|
|
|
--- src/join.c.orig
|
|
|
|
+++ src/join.c
|
|
|
|
@@ -1335,7 +1335,7 @@ main (int argc, char **argv)
|
2010-11-15 16:52:55 +00:00
|
|
|
|
|
|
|
case 't':
|
|
|
|
{
|
|
|
|
- char *newtab;
|
|
|
|
+ char *newtab = NULL;
|
|
|
|
size_t newtablen;
|
|
|
|
newtab = xstrdup (optarg);
|
|
|
|
#if HAVE_MBRTOWC
|
2013-01-22 14:08:43 +00:00
|
|
|
@@ -1357,7 +1357,7 @@ main (int argc, char **argv)
|
2010-11-15 16:52:55 +00:00
|
|
|
newtablen = 1;
|
|
|
|
if (! newtab)
|
|
|
|
{
|
|
|
|
- newtab = '\n'; /* '' => process the whole line. */
|
|
|
|
+ newtab = "\n"; /* '' => process the whole line. */
|
|
|
|
}
|
|
|
|
else if (optarg[1])
|
|
|
|
{
|