Would have thought maybe initializing it would help but for two things. One, another later spot that causes this issue, if I comment out like I mentioned, is this line:
char errbuf[256] = {0};
which does initialize the variable. Second, The program runs fine on my desktop, so the issue is...