Date: Wed, 27 Jun 2001 20:45:15 +0100 From: Ben Smithurst <ben@FreeBSD.org> To: Poul-Henning Kamp <phk@critter.freebsd.dk> Cc: ru@FreeBSD.org, freebsd-doc@FreeBSD.org Subject: Re: docs/28371: malloc(2) man page correction Message-ID: <20010627204515.D49799@strontium.shef.vinosystems.com> In-Reply-To: <93484.993670775@critter> References: <200106271422.f5REMGo18508@freefall.freebsd.org> <93484.993670775@critter>
next in thread | previous in thread | raw e-mail | index | archive | help
Poul-Henning Kamp wrote: > Well, I'm not sure I agree in the fix. The string is not by > definition a constant, you could assign it in your code, depending > on circumstances found only after starting to run (for instance > setting "AJ" when running with a debugging command line switch). But 'extern const char *malloc_options' doesn't prevent that - it makes what malloc_options points to constant, not the malloc_options variable itself. So 'malloc_options = "AJ"' would still be legal, or did I misunderstand something? -- Ben Smithurst / ben@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010627204515.D49799>