diff options
author | Brad King <brad.king@kitware.com> | 2002-01-25 14:06:39 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2002-01-25 14:06:39 (GMT) |
commit | 0bdd309fe0f2269176f3912fecbca185048b9495 (patch) | |
tree | 952913f877058c058d16365b93d77a9b62a64782 /Source/CursesDialog/form/fld_def.c | |
parent | 31561a7848d8c2b81ab2bc269e4b2c7e190402a7 (diff) | |
download | CMake-0bdd309fe0f2269176f3912fecbca185048b9495.zip CMake-0bdd309fe0f2269176f3912fecbca185048b9495.tar.gz CMake-0bdd309fe0f2269176f3912fecbca185048b9495.tar.bz2 |
ERR: Corrected assertions of pointers to remove warnings.
Diffstat (limited to 'Source/CursesDialog/form/fld_def.c')
-rw-r--r-- | Source/CursesDialog/form/fld_def.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/CursesDialog/form/fld_def.c b/Source/CursesDialog/form/fld_def.c index 7b88693..4a49a25 100644 --- a/Source/CursesDialog/form/fld_def.c +++ b/Source/CursesDialog/form/fld_def.c @@ -101,7 +101,7 @@ _nc_Make_Argument(const FIELDTYPE *typ, va_list *ap, int *err) *err += 1; } else { - assert(typ->makearg); + assert(typ->makearg != 0); if ( !(res=(TypeArgument *)typ->makearg(ap)) ) *err += 1; } @@ -174,7 +174,7 @@ _nc_Free_Argument(const FIELDTYPE * typ, TypeArgument * argp) if (typ->status & _LINKED_TYPE) { - assert(argp); + assert(argp != 0); _nc_Free_Argument(typ->left ,argp->left ); _nc_Free_Argument(typ->right,argp->right); free(argp); @@ -231,7 +231,7 @@ _nc_Copy_Type(FIELD *dst, FIELD const *src) void _nc_Free_Type(FIELD *field) { - assert(field); + assert(field != 0); if (field->type) field->type->ref--; _nc_Free_Argument(field->type,(TypeArgument *)(field->arg)); |