projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Avoid test failures on AIX and OSF/1.
[gnulib.git]
/
lib
/
uniwbrk
/
ulc-wordbreaks.c
diff --git
a/lib/uniwbrk/ulc-wordbreaks.c
b/lib/uniwbrk/ulc-wordbreaks.c
index
85e4efd
..
b97b13d
100644
(file)
--- a/
lib/uniwbrk/ulc-wordbreaks.c
+++ b/
lib/uniwbrk/ulc-wordbreaks.c
@@
-64,9
+64,9
@@
ulc_wordbreaks (const char *s, size_t n, char *p)
s, n, offsets, &t, &m)
== 0)
{
- char *q = (char *)
malloc (m
);
+ char *q = (char *)
(m > 0 ? malloc (m) : NULL
);
- if (q != NULL)
+ if (
m == 0 ||
q != NULL)
{
size_t i;