Check for null argument.

This commit is contained in:
Klaas Freitag 2013-05-04 16:08:49 +02:00
parent 84a28fa8f7
commit 54ed522bbe

View file

@ -661,6 +661,7 @@ int csync_vio_set_property(CSYNC* ctx, const char* key, void* data) {
}
char *csync_vio_get_error_string(CSYNC *ctx) {
if( ! ctx ) return 0;
if(ctx->error_string) {
return ctx->error_string;
}