From: Andre Noll Date: Mon, 10 Sep 2007 21:08:35 +0000 (+0200) Subject: osl.c: Dereference pointer _after_ checking for NULL. X-Git-Tag: v0.3.0~429 X-Git-Url: http://git.tuebingen.mpg.de/?a=commitdiff_plain;h=02429751ca6f639cc29650b5ac2cc513749ce957;hp=191d16070b9511f5b32b1ede7a9d0db1ffb3da54;p=paraslash.git osl.c: Dereference pointer _after_ checking for NULL. --- diff --git a/osl.c b/osl.c index 0ac7ead0..54461c1d 100644 --- a/osl.c +++ b/osl.c @@ -493,10 +493,10 @@ int init_table_structure(const struct osl_table_description *desc, struct osl_table *t = para_calloc(sizeof(*t)); int i, ret = -E_BAD_TABLE_DESC, have_disk_storage_name_column = 0; - PARA_INFO_LOG("creating table structure for '%s' from table " - "description\n", desc->name); if (!desc) goto err; + PARA_INFO_LOG("creating table structure for '%s' from table " + "description\n", desc->name); ret = -E_NO_COLUMN_DESC; if (!desc->column_descriptions) goto err;