fix initialization when slaveok is allowed
Merge pull request #2 from beevek/master

Fix initialization when slaveok is allowed