From 34a0f49343cf410e7a3b9317171494f5786796f8 Mon Sep 17 00:00:00 2001 From: Stathis Kamperis Date: Sun, 3 Feb 2008 22:48:26 +0100 Subject: [PATCH] Add some comments --- proplib/prop_read_array_.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proplib/prop_read_array_.c b/proplib/prop_read_array_.c index d17f39f..6fd73ff 100644 --- a/proplib/prop_read_array_.c +++ b/proplib/prop_read_array_.c @@ -32,7 +32,10 @@ int main(int argc, char *argv[]) /* Skim through every item of the array */ for (i = 0; i < prop_array_count(pa); i++) { + /* Get the object stored at the i-th array index */ po = prop_array_get(pa, i); + + /* Just a sanity check */ if (prop_object_type(po) != PROP_TYPE_STRING) { prop_object_release(pa); errx(EXIT_FAILURE, "invalid string type"); -- 2.11.4.GIT