=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/dc/bcode.c,v retrieving revision 1.38 retrieving revision 1.39 diff -u -r1.38 -r1.39 --- src/usr.bin/dc/bcode.c 2008/11/24 08:48:48 1.38 +++ src/usr.bin/dc/bcode.c 2009/09/06 13:33:33 1.39 @@ -1,4 +1,4 @@ -/* $OpenBSD: bcode.c,v 1.38 2008/11/24 08:48:48 otto Exp $ */ +/* $OpenBSD: bcode.c,v 1.39 2009/09/06 13:33:33 otto Exp $ */ /* * Copyright (c) 2003, Otto Moerbeek @@ -17,7 +17,7 @@ */ #ifndef lint -static const char rcsid[] = "$OpenBSD: bcode.c,v 1.38 2008/11/24 08:48:48 otto Exp $"; +static const char rcsid[] = "$OpenBSD: bcode.c,v 1.39 2009/09/06 13:33:33 otto Exp $"; #endif /* not lint */ #include @@ -876,7 +876,7 @@ else { stack = &bmachine.reg[reg]; v = frame_retrieve(stack, idx); - if (v == NULL) { + if (v == NULL || v->type == BCODE_NONE) { n = new_number(); bn_check(BN_zero(n->number)); push_number(n);