[<<][c][>>][..]
Sat Dec 17 14:58:52 EST 2011

Assigning pointers to zero

I ran into a bug today that's similar to

  void foo(int *a) {
      a = 0;
      ///
      a = 123;
  }

when I meant:

  void foo(int *a) {
      *a = 0;
      ///
      *a = 123;
  }

How to make this into an error without using leaky const arguments?




[Reply][About]
[<<][c][>>][..]