diff options
Diffstat (limited to 'protocols/YAMN/src/protoplugin.cpp')
-rw-r--r-- | protocols/YAMN/src/protoplugin.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/protocols/YAMN/src/protoplugin.cpp b/protocols/YAMN/src/protoplugin.cpp index 0beaee7a42..87467d0abf 100644 --- a/protocols/YAMN/src/protoplugin.cpp +++ b/protocols/YAMN/src/protoplugin.cpp @@ -34,9 +34,7 @@ YAMN_PROTOPLUGIN* RegisterProtocolPlugin(YAMN_PROTOREGISTRATION *Registration) int SetProtocolPluginFcnImportFcn(YAMN_PROTOPLUGIN *Plugin, YAMN_PROTOIMPORTFCN *YAMNFcn, YAMN_MAILIMPORTFCN *YAMNMailFcn)
{
- if (YAMNFcn == nullptr)
- return 0;
- if (YAMNMailFcn == nullptr)
+ if (YAMNFcn == nullptr || YAMNMailFcn == nullptr)
return 0;
Plugin->Fcn = YAMNFcn;
|