summaryrefslogtreecommitdiff
blob: 6ee9bcf456d4a664c2ec6afc09a377007c9cf07e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/src/lemon/error.h
+++ b/src/lemon/error.h
@@ -67,9 +67,9 @@
     }
 
     ExceptionMember& operator=(const ExceptionMember& copy) {
-      if (ptr.get() == 0) return;
+      if (ptr.get() == 0) return *this;
       try {
-	if (!copy.valid()) return;
+	if (!copy.valid()) return *this;
  	*ptr = copy.get();
       } catch (...) {}
     }