On Wednesday 13 May 2009 11:55:57 Dr. Werner Fink wrote:
> There is also a patch done by Anders but
> we're a bit unsure if this is the correct solution:

I have another patch now. One that might actually be correct. The disc's put 
function gets called, with something that it interprets correctly (apparently, 
the original code tried to read a pointer to double as a pointer to char which 
corrupted everything)

I'm not sure about the NULL assignment there. I had some issues with nvsize 
getting set to 0, but that may have been the effects of other debugging 
patches of mine

Anders

-- src/cmd/ksh93/sh/subshell.c.orig    2009-05-11 11:33:50.000000000 +0200
+++ src/cmd/ksh93/sh/subshell.c 2009-05-13 11:39:03.000000000 +0200
@@ -236,7 +236,10 @@
                mp->nvfun = np->nvfun;
                mp->nvflag = np->nvflag;
                if(nv_cover(mp))
-                       nv_putval(mp, np->nvalue.cp,0);
+               {
+                       mp->nvalue.cp=(char *)0x0;
+                       nv_putval(mp, nv_getval(np),0);
+               }
                else
                        mp->nvalue.cp = np->nvalue.cp;
                np->nvfun = 0;


_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to