[alsa-devel] dereferencing pointer error in app but not in lib