aboutsummaryrefslogtreecommitdiffstats
path: root/regex_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'regex_internal.h')
-rw-r--r--regex_internal.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/regex_internal.h b/regex_internal.h
index f87d336d..6b6a1f40 100644
--- a/regex_internal.h
+++ b/regex_internal.h
@@ -467,8 +467,7 @@ static unsigned int re_string_context_at (const re_string_t *input, int idx,
#endif
#define re_malloc(t,n) ((t *) malloc ((n) * sizeof (t)))
-/* SunOS 4.1.x realloc doesn't accept null pointers: pre-Standard C. Sigh. */
-#define re_realloc(p,t,n) ((p != NULL) ? (t *) realloc (p,(n)*sizeof(t)) : (t *) calloc(n,sizeof(t)))
+#define re_realloc(p,t,n) ((t *) realloc (p, (n) * sizeof (t)))
#define re_free(p) free (p)
struct bin_tree_t