mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 19:58:56 +03:00
Check for null argument.
This commit is contained in:
parent
84a28fa8f7
commit
54ed522bbe
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue