changeset 1958:9ca852da0017

[project @ 1996-02-15 04:46:20 by jwe]
author jwe
date Thu, 15 Feb 1996 04:46:20 +0000
parents 0e6a0a271998
children 9fae6fc592f2
files liboctave/base-de.h
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/base-de.h
+++ b/liboctave/base-de.h
@@ -42,8 +42,11 @@
 
   base_diff_eqn& operator = (const base_diff_eqn& a)
     {
-      x = a.x;
-      t = a.t;
+      if (this != &a)
+	{
+	  x = a.x;
+	  t = a.t;
+	}
       return *this;
     }