Subject: CVS commit: src/common/lib/libprop
To: None <source-changes@NetBSD.org>
From: Jason R Thorpe <thorpej@netbsd.org>
List: source-changes
Date: 08/22/2006 21:21:24
Module Name:	src
Committed By:	thorpej
Date:		Tue Aug 22 21:21:23 UTC 2006

Modified Files:
	src/common/lib/libprop: prop_array.c prop_bool.c prop_data.c
	    prop_dictionary.c prop_number.c prop_string.c

Log Message:
Also guard object accessors against NULL (like we do foreign object types)
so that apps can use this construct safely:

	obj = prop_dictionary_get(dict, "value");
	if (! prop_number_equals_integer(obj, 5)) {
		...
	}

Suggested by Iain Hibbert.


To generate a diff of this commit:
cvs rdiff -r1.5 -r1.6 src/common/lib/libprop/prop_array.c
cvs rdiff -r1.4 -r1.5 src/common/lib/libprop/prop_bool.c \
    src/common/lib/libprop/prop_number.c
cvs rdiff -r1.3 -r1.4 src/common/lib/libprop/prop_data.c \
    src/common/lib/libprop/prop_string.c
cvs rdiff -r1.10 -r1.11 src/common/lib/libprop/prop_dictionary.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.