Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libform Fix null dereference in set_field_type.



details:   https://anonhg.NetBSD.org/src/rev/956e4abfa916
branches:  trunk
changeset: 534975:956e4abfa916
user:      blymn <blymn%NetBSD.org@localhost>
date:      Wed Aug 07 13:57:03 2002 +0000

description:
Fix null dereference in set_field_type.

diffstat:

 lib/libform/field_types.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 343a09c084d7 -r 956e4abfa916 lib/libform/field_types.c
--- a/lib/libform/field_types.c Wed Aug 07 13:43:33 2002 +0000
+++ b/lib/libform/field_types.c Wed Aug 07 13:57:03 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: field_types.c,v 1.3 2001/06/13 10:45:58 wiz Exp $      */
+/*     $NetBSD: field_types.c,v 1.4 2002/08/07 13:57:03 blymn Exp $    */
 
 /*-
  * Copyright (c) 1998-1999 Brett Lymn
@@ -122,7 +122,7 @@
        field = (fptr == NULL)? &_formi_default_field : fptr;
 
        field->type = type;
-       _formi_create_field_args(type, &fptr->args, &type->link, &args,
+       _formi_create_field_args(type, &field->args, &type->link, &args,
                                 &error);
        va_end(args);
        



Home | Main Index | Thread Index | Old Index