Fix warning about uninitialized variable.

This commit is contained in:
steve 2003-03-18 01:21:49 +00:00
parent 1afad677e9
commit b21dba8fc4
1 changed files with 5 additions and 2 deletions

View File

@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CVS_IDENT #ifdef HAVE_CVS_IDENT
#ident "$Id: a_handle_tfarg.c,v 1.4 2003/03/14 04:58:50 steve Exp $" #ident "$Id: a_handle_tfarg.c,v 1.5 2003/03/18 01:21:49 steve Exp $"
#endif #endif
#include <acc_user.h> #include <acc_user.h>
@ -28,7 +28,7 @@
*/ */
handle acc_handle_tfarg(int n) handle acc_handle_tfarg(int n)
{ {
vpiHandle sys_h, sys_i, rtn_h; vpiHandle sys_h, sys_i, rtn_h = 0;
if (n > 0) { if (n > 0) {
sys_h = vpi_handle(vpiSysTfCall, 0 /* NULL */); sys_h = vpi_handle(vpiSysTfCall, 0 /* NULL */);
@ -58,6 +58,9 @@ handle acc_handle_tfinst(void)
/* /*
* $Log: a_handle_tfarg.c,v $ * $Log: a_handle_tfarg.c,v $
* Revision 1.5 2003/03/18 01:21:49 steve
* Fix warning about uninitialized variable.
*
* Revision 1.4 2003/03/14 04:58:50 steve * Revision 1.4 2003/03/14 04:58:50 steve
* Free the iterator when Im done. * Free the iterator when Im done.
* *