• Wincent
    Menu
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Avoid uninitialized use of variable (Synergy, 26d81a6)

Created 12/27/2007, updated 3/5/2024
  • snippets

GCC warns here because in the event of an error the variable might be used prior to initialization. Fix by moving the initialize to the very top of the method body.

Signed-off-by: Greg Hurrell <greg@hurrell.net>

← Remove deprecated methods (WOCommon, c5028f5)
Add back NSHumanReadableCopyright (Synergy, d1c8738) →

All snippets

Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell with Rust (with help from Git and Neovim).