aboutsummaryrefslogtreecommitdiff
path: root/net/mgen/files/patch-common_mgenSocketList.cpp
blob: bfaab57e192b8722d90b8afb7cc082064d0c2304 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
../common/mgenSocketList.cpp:231:20: error: cannot initialize return object of type 'MgenSocketList::Item *' with an rvalue of type 'bool'
            return false;
                   ^~~~~

--- common/mgenSocketList.cpp.orig	2018-08-25 18:45:33 UTC
+++ common/mgenSocketList.cpp
@@ -228,7 +228,7 @@ MgenSocketList::Item* MgenSocketList::JoinGroup(const 
         {
             DMSG(0, "MgenSocketList::JoinGroup() memory allocation error: %s\n",
                     GetErrorString());
-            return false;
+            return NULL;
         }
         item->SetSocketNotifier(socket_notifier);
         Prepend(item);