jean-f (and others) if (boolean == True) is bad: this should be if (boolean) if (boolean) { flag = True; } else { flag = False; } should be flag = (boolean); void *ptr = 0 is bad: this should be void *ptr = NULL etc...