aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFritz Elfert <felfert@to.com>2002-08-11 01:41:45 +0000
committerFritz Elfert <felfert@to.com>2002-08-11 01:41:45 +0000
commit0df34ec5ddb92ce7e3bcbb4f0eb24e30955ba3a1 (patch)
treebf25a83298b223ea71428b1453f3b3a04de902ef /lib
parent8a6406733e385afc86d9937ff79f228ef40afc99 (diff)
downloadplptools-0df34ec5ddb92ce7e3bcbb4f0eb24e30955ba3a1.tar.gz
plptools-0df34ec5ddb92ce7e3bcbb4f0eb24e30955ba3a1.tar.bz2
plptools-0df34ec5ddb92ce7e3bcbb4f0eb24e30955ba3a1.zip
- Fixed setting of CFLAGS and CXXFLAGS: With --enable-debug, disable -O
- Removed ccmalloc support. Now using valgrind - Added missing mainainer-clean-local targets - Fixed uninitialized array in IOwatch, reported by valgrind. - Fixed missing definition of LC_ALL if compiling without -O - Fixed invalid access to datapump thread (not yet created), reported by valgrind. - Fixed wrong parameters of QRegExp when using QT 3.x - Fixed KTar initialization which has changed in KDE 3.x
Diffstat (limited to 'lib')
-rw-r--r--lib/iowatch.cc1
-rw-r--r--lib/plpintl.h5
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/iowatch.cc b/lib/iowatch.cc
index 7335d4a..5a975f7 100644
--- a/lib/iowatch.cc
+++ b/lib/iowatch.cc
@@ -33,6 +33,7 @@
IOWatch::IOWatch() {
num = 0;
io = new int [FD_SETSIZE];
+ memset(io, -1, FD_SETSIZE);
}
IOWatch::~IOWatch() {
diff --git a/lib/plpintl.h b/lib/plpintl.h
index e28fde0..7eb4da9 100644
--- a/lib/plpintl.h
+++ b/lib/plpintl.h
@@ -39,6 +39,11 @@ extern inline char * stpcpy(char *dest, const char *src) {
}
#endif
+/* libintl.h includes locale.h only if optimized.
+ * however, we need LC_ALL ...
+ */
+#include <locale.h>
+
#if defined(ENABLE_NLS) && defined(HAVE_GETTEXT)
# include <libintl.h>
static inline const char *X_(const char *t) { return gettext(t); }