Skip to content
  • Ralph Giles's avatar
    Initialize global pointers in examples. · 91203fdf
    Ralph Giles authored
    Global pointers are initialized to zero in C, but not in C++.
    
    Add an explicit initializer to reduce confusion and avoid
    bugs when the example code is copied into C++ applications.
    
    Based on a patch by Alex Houghton <houghton1411@aol.com>.
    91203fdf