public inbox for gnats-prs@sourceware.org help / color / mirror / Atom feed
From: forrest@mibsoftware.com To: pdm-gnats@zamazal.org,gnats-prs@gnu.org,bug-gnats@gnu.org Subject: gnats/317: bad decl of tmpdir in temporary_directory() in misc.c Date: Wed, 02 Jan 2002 20:39:00 -0000 [thread overview] Message-ID: <E16Lzc1-00008x-00@fencepost.gnu.org> (raw) >Number: 317 >Category: gnats >Synopsis: bad decl of tmpdir in temporary_directory() in misc.c >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Jan 02 23:36:17 -0500 2002 >Originator: Forrest Cavalier >Release: >Organization: Mib Software >Environment: GNATS 4.0 from cvs. On WIN32 >Description: In misc.c, bad decl of tmpdir char tmpdir = *getenv ("TMPDIR"); if (tmpdir == NULL) >How-To-Repeat: Generates a warning, but probably incorrect code too. Could segfault since getenv() could return NULL, leading to *(NULL). >Fix: --- gnats/gnats/gnats/misc.c Thu Dec 06 17:25:21 2001 +++ modified/gnats/misc.c Wed Jan 02 23:29:29 2002 @@ -499,7 +499,7 @@ #ifdef P_tmpdir return P_tmpdir; #else - char tmpdir = *getenv ("TMPDIR"); + char *tmpdir = getenv ("TMPDIR"); if (tmpdir == NULL) { tmpdir = "/tmp"; >Unformatted: _______________________________________________ Gnats-prs mailing list Gnats-prs@gnu.org http://mail.gnu.org/mailman/listinfo/gnats-prs
next reply other threads:[~2002-01-03 4:39 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-01-02 20:39 forrest [this message] 2002-01-04 14:33 ` Milan Zamazal
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=E16Lzc1-00008x-00@fencepost.gnu.org \ --to=forrest@mibsoftware.com \ --cc=bug-gnats@gnu.org \ --cc=gnats-prs@gnu.org \ --cc=pdm-gnats@zamazal.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).