diff sidinfo.c @ 236:609bfc1bd628

Change sidlib_sldb_new() API to int sidlib_sldb_new(SIDLibSLDB **pdbh).
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 04 Jan 2020 13:18:55 +0200
parents 3cb7be7b98a6
children 2ed665b74043
line wrap: on
line diff
--- a/sidinfo.c	Sat Jan 04 13:11:56 2020 +0200
+++ b/sidinfo.c	Sat Jan 04 13:18:55 2020 +0200
@@ -1306,9 +1306,10 @@
             setSLDBNewFormat ? ".md5" : ".txt",
             setSLDBPath);
 
-        if ((sidSLDB = sidlib_sldb_new()) == NULL)
+        if ((ret = sidlib_sldb_new(&sidSLDB)) != THERR_OK)
         {
-            THERR("Could not allocate SLDB structure!\n");
+            THERR("Could not allocate SLDB database structure: %s\n",
+                th_error_str(ret));
             goto err1;
         }