check that conninfo is not NULL before using it
update examples
Merge branch 'master' into portable