[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
34-fyi-un-segv.patch
From: |
Akim Demaille |
Subject: |
34-fyi-un-segv.patch |
Date: |
Wed, 05 Sep 2001 09:16:21 +0200 |
I must say I don't understand why this causes a SEGV. Is it related
to the sizeof things?
Index: ChangeLog
from Akim Demaille <address@hidden>
* m4/symtab.c (m4_symbol_insert): Don't use `foo () || bar ()'
with pointers.
Index: m4/symtab.c
--- m4/symtab.c Tue, 04 Sep 2001 11:03:34 +0200 akim
+++ m4/symtab.c Tue, 04 Sep 2001 11:03:49 +0200 akim
@@ -210,7 +210,11 @@
m4_symbol *
m4_symbol_insert (const char *name)
{
- return (m4_symbol *) (m4_symbol_lookup (name) || m4_symbol_pushdef (name));
+ m4_symbol *res = m4_symbol_lookup (name);
+ if (res)
+ return res;
+ else
+ m4_symbol_pushdef (name);
}
- 34-fyi-un-segv.patch,
Akim Demaille <=