Skip to content

Commit 6d4efe5

Browse files
committed
Fix a compilation error on HP-UX 11.00, introduced on 2008-09-16.
1 parent 47eb581 commit 6d4efe5

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2009-04-24 Bruno Haible <bruno@clisp.org>
2+
3+
Fix a compilation error on HP-UX 11.00, introduced on 2008-09-16.
4+
* src/iconv_open2.h: Don't initialize nonexistent field if
5+
!(HAVE_WCRTOMB || HAVE_MBRTOWC).
6+
Patch by Joel Brobecker <brobecker@adacore.com>.
7+
18
2009-04-15 Bruno Haible <bruno@clisp.org>
29

310
* src/Makefile.in (install, uninstall): Append the $(EXEEXT) suffix

lib/iconv_open2.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 1999-2008 Free Software Foundation, Inc.
2+
* Copyright (C) 1999-2009 Free Software Foundation, Inc.
33
* This file is part of the GNU LIBICONV Library.
44
*
55
* The GNU LIBICONV Library is free software; you can redistribute it
@@ -82,6 +82,8 @@
8282
/* Initialize additional fields. */
8383
if (from_wchar != to_wchar) {
8484
struct wchar_conv_struct * wcd = (struct wchar_conv_struct *) cd;
85+
#if HAVE_WCRTOMB || HAVE_MBRTOWC
8586
memset(&wcd->state,'\0',sizeof(mbstate_t));
87+
#endif
8688
}
8789
/* Done. */

0 commit comments

Comments
 (0)