mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 17:37:36 +03:00
Make VIO_METHOD_HAS_FUNC macro more robust.
This commit is contained in:
parent
5951039894
commit
5e0e42baaf
1 changed files with 2 additions and 2 deletions
|
@ -30,8 +30,8 @@
|
|||
#include "vio/csync_vio_handle.h"
|
||||
|
||||
#define VIO_METHOD_HAS_FUNC(method,func) \
|
||||
(((size_t)(((char *)&((method)->func)) - ((char *)(method))) < (method)->method_table_size) \
|
||||
&& method->func != NULL)
|
||||
(method != NULL && method->func != NULL \
|
||||
&& ((size_t)(((char *)&((method)->func)) - ((char *)(method))) < (method)->method_table_size))
|
||||
|
||||
typedef struct csync_vio_method_s csync_vio_method_t;
|
||||
|
||||
|
|
Loading…
Reference in a new issue