Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libcurses/director Try to initialize retval to som...
details: https://anonhg.NetBSD.org/src/rev/2e0f6b5e9815
branches: trunk
changeset: 766201:2e0f6b5e9815
user: joerg <joerg%NetBSD.org@localhost>
date: Sat Jun 18 20:05:56 2011 +0000
description:
Try to initialize retval to something sensible.
diffstat:
tests/lib/libcurses/director/testlang_parse.y | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r ab4750395ff3 -r 2e0f6b5e9815 tests/lib/libcurses/director/testlang_parse.y
--- a/tests/lib/libcurses/director/testlang_parse.y Sat Jun 18 20:05:28 2011 +0000
+++ b/tests/lib/libcurses/director/testlang_parse.y Sat Jun 18 20:05:56 2011 +0000
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: testlang_parse.y,v 1.6 2011/06/17 16:32:31 christos Exp $ */
+/* $NetBSD: testlang_parse.y,v 1.7 2011/06/18 20:05:56 joerg Exp $ */
/*-
* Copyright 2009 Brett Lymn <blymn%NetBSD.org@localhost>
@@ -1241,6 +1241,7 @@
returns_t *retval;
var_t *varptr;
+ retval = &command.returns[ret];
varptr = &vars[command.returns[ret].return_index];
if (varptr->value == NULL)
Home |
Main Index |
Thread Index |
Old Index