]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - osl.c
osl.c: Dereference pointer _after_ checking for NULL.
[paraslash.git] / osl.c
diff --git a/osl.c b/osl.c
index 0ac7ead0ffda5ed0925106de589b0bba5c41e706..54461c1dd46026ae509bae25b56bfe291238bca0 100644 (file)
--- 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;