]> Cypherpunks repositories - gostls13.git/commitdiff
another seg fault
authorKen Thompson <ken@golang.org>
Sat, 4 Jul 2009 20:59:08 +0000 (13:59 -0700)
committerKen Thompson <ken@golang.org>
Sat, 4 Jul 2009 20:59:08 +0000 (13:59 -0700)
R=r
OCL=31156
CL=31156

src/cmd/gc/walk.c

index 6d102982cb9f87334877d47ded106285e5c893fe..30c864df638c9c0e7ede600c9f8f69634df724d1 100644 (file)
@@ -402,7 +402,8 @@ loop:
                        break;
 
                case 1:
-                       n->type = n->type->type->type;
+                       if(n->type != T && n->type->type != T && n->type->type->type != T)
+                               n->type = n->type->type->type;
                        break;
                }