From 02429751ca6f639cc29650b5ac2cc513749ce957 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 10 Sep 2007 23:08:35 +0200 Subject: [PATCH] osl.c: Dereference pointer _after_ checking for NULL. --- osl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2