some small fixes for main.cpp/.h #2005

pull Diapolo wants to merge 1 commits into bitcoin:master from Diapolo:fixes_main changing 2 files +6 −8
  1. Diapolo commented at 12:19 PM on November 11, 2012: none
    • remove an unwanted ";" at the end of the ~CCoinsView() destructor
    • in FindBlockPos() and FindUndoPos() only call fclose(), if file is open
    • fix an error string in the CBlockUndo class
  2. some small fixes for main.cpp/.h
    - remove an unwanted ";" at the end of the ~CCoinsView() destructor
    - in FindBlockPos() and FindUndoPos() only call fclose(), is file is open
    - fix an error string in the CBlockUndo class
    13e5cce4c3
  3. laanwj commented at 6:17 AM on November 15, 2012: member

    Indeed:

       The behaviour of fclose() is undefined if the stream parameter is an illegal pointer, or is a descriptor already passed to a previous invoca‐
       tion of fclose().
    

    ACK

  4. jgarzik referenced this in commit 824e196054 on Nov 16, 2012
  5. jgarzik merged this on Nov 16, 2012
  6. jgarzik closed this on Nov 16, 2012

  7. laudney referenced this in commit 5e4e7c3e62 on Mar 19, 2014
  8. KolbyML referenced this in commit 6fb1dd7084 on Dec 5, 2020
  9. DrahtBot locked this on Sep 8, 2021
Contributors

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-21 18:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me