From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.236.61.170 with SMTP id w30mr4773421yhc.20.1392453687325; Sat, 15 Feb 2014 00:41:27 -0800 (PST) Path: border2.nntp.dca.giganews.com!nntp.giganews.com!k15no20812559qaq.0!news-out.google.com!s3ni19386qas.0!nntp.google.com!peer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: confusing string error Date: Sat, 15 Feb 2014 08:41:27 +0000 Organization: A noiseless patient Spider Message-ID: References: <87ha81u9r7.fsf@adaheads.sparre-andersen.dk> <3kdtf9l42gimm37vgia3eibsmr638r27ig@4ax.com> <418563f9-4ec0-4eec-bb47-3a42a09fd19f@googlegroups.com> Mime-Version: 1.0 Injection-Info: mx05.eternal-september.org; posting-host="f3a204fd0da52c1307d65ca023946f38"; logging-data="13534"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Mq9EtxL2IQehjc0tnDMG62lZ50bJRcPI=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) Cancel-Lock: sha1:qc5YK9vyr0re0En4YBnONXbrz/8= sha1:aeYapVne3lbts2vcdEBrM4aPgXY= X-Received-Bytes: 1556 X-Received-Body-CRC: 1564415331 Content-Type: text/plain Xref: number.nntp.dca.giganews.com comp.lang.ada:184873 Date: 2014-02-15T08:41:27+00:00 List-Id: adambeneschan@gmail.com writes: > It's possible that everything could get initialized to 0 in a > particular implementation, though, either because the compiler vendors > decided to make the code do that, or the OS does that when loading the > program, or often just by luck. A colleague's code failed disastrously when moved from Windows (the development environment) to VxWorks (the target), precisely because allocated records weren't initialized to zeros on the target.