git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Fix an unitialized pointer in merge-recursive.c

From
FWFlorian Weimer <fw@deneb.enyo.de>
Date
Aug 16, 2007, 13:16 UTC
Message-ID
<87ps1nwrfr.fsf@mid.deneb.enyo.de>
In-Reply-To
<7vodh7khuo.fsf@gitster.siamese.dyndns.org>
* Junio C. Hamano:
> Third option.  Change the assignment from "mrtree = NULL" to
> "mrtree = mtree".  It is a standard idiom to work around stupid
> gcc warnings.

Is it? It's also undefined according to the C standard. In other words, the compiler may assume that this particular declaration is never reached.

Previous: David Kastrup
Message 7 of 7 in “Fix an unitialized pointer in merge-recursive.c”
  1. Fix an unitialized pointer in merge-recursive.cMarco Costalba, Aug 16, 2007
  2. Junio C HamanoAug 16, 2007
  3. Marco CostalbaAug 16, 2007
  4. Junio C HamanoAug 16, 2007
  5. Junio C HamanoAug 16, 2007
  6. David KastrupAug 16, 2007
  7. Florian WeimerAug 16, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.