You mean "here is some of it".
Since it appears that lp1 and lp2 are local variables, neither is initialized. You assign a value to lp1, and then test whether that is different from the junk in lp2. I'd not be surprised that lp1 doesn't equal lp2.
Now, if lp2 was global or static...