changeset 33:b2fe4301384d

Silence a minor warning.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 29 Sep 2012 18:51:09 +0300
parents d1a6833a5d67
children 7908061da010
files dmres.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dmres.c	Sat Sep 29 16:59:46 2012 +0300
+++ b/dmres.c	Sat Sep 29 18:51:09 2012 +0300
@@ -772,7 +772,7 @@
 
 int dmres_load_resfile(const char *filename)
 {
-    int ret;
+    int ret = DMERR_OK;
     char line[256];
     FILE *f = fopen(filename, "r");
     if (f == NULL)
@@ -803,6 +803,7 @@
 
     DMRES_UNLOCK();
     fclose(f);
+
     return ret;
 }