Segfault fix

Related: https://github.com/xaionaro/clsync/issues/57

Caused by: a557859cba638d012f4a06aa466e1eb63f211ef3