projects
/
sxemacs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ac8ebb
)
Allocate and copy ures when it would be the return address.
author
Nelson Ferreira
<nelson.ferreira@ieee.org>
Fri, 16 Sep 2011 02:59:24 +0000
(22:59 -0400)
committer
Nelson Ferreira
<nelson.ferreira@ieee.org>
Fri, 16 Sep 2011 02:59:24 +0000
(22:59 -0400)
CID:200
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
modules/ase/ase-interval.c
patch
|
blob
|
history
diff --git
a/modules/ase/ase-interval.c
b/modules/ase/ase-interval.c
index
83aadcc
..
b832264
100644
(file)
--- a/
modules/ase/ase-interval.c
+++ b/
modules/ase/ase-interval.c
@@
-1997,7
+1997,12
@@
_ase_subtract_intv_union(ase_interval_t a, ase_interval_union_item_t u)
break;
u = u->next;
}
-
+ if (na == &ures) {
+ /* Copy the local temporary to the heap */
+ na = xnew(struct ase_interval_union_item_s);
+ assert(na);
+ memcpy(na,ures,sizeof(ures));
+ }
return na;
}