Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: hzoli change: $foo:s//r/
- X-seq: zsh-workers 324
- From: schaefer@xxxxxxx (Barton E. Schaefer)
- To: Zoltan Hidvegi <hzoli@xxxxxxxxxx>, kaefer@xxxxxxxxxxxxxxx (Thorsten Meinecke), zsh-workers@xxxxxxxxxxxxxxx
- Subject: Re: hzoli change: $foo:s//r/
- Date: Wed, 16 Aug 1995 09:01:07 -0700
- In-reply-to: Zoltan Hidvegi <hzoli@xxxxxxxxxx> "Re: hzoli change: $foo:s//r/" (Aug 16, 5:20pm)
- References: <199508161523.RAA22132@xxxxxxxxxxxxxxxxx>
- Reply-to: schaefer@xxxxxxx
On Aug 16, 5:20pm, Zoltan Hidvegi wrote:
} Subject: Re: hzoli change: $foo:s//r/
}
} > Another very minor problem with Zoltan's substitution code.
} >
} > If hsubr is non-NULL, and a "bad/no previous substitution" error
} > occurs, hsubr is free()d. This may corrupt memory.
}
} You are right here. But there is an other problem: the code assumes in many
} places that extern variables are initialized to zero.
This is a safe assumption. It's required that the compiler initialize
global variables to zero, at least as far back as K&R and probably farther.
--
Bart Schaefer Vice President, Technology, Z-Code Software
schaefer@xxxxxxxxxx Division of NCD Software Corporation
http://www.well.com/www/barts
Messages sorted by:
Reverse Date,
Date,
Thread,
Author