changeset 10236:4640f25fef12

warning fixes by Dominik
author alex
date Sun, 01 Jun 2003 22:16:41 +0000
parents 1129ff2d25c6
children 649f1089d94d
files m_option.c subreader.c
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/m_option.c	Sun Jun 01 22:10:44 2003 +0000
+++ b/m_option.c	Sun Jun 01 22:16:41 2003 +0000
@@ -1493,7 +1493,8 @@
     d[n].attribs = NULL;
     copy_str_list(NULL,&(d[n].attribs),&(s[n].attribs));
   }
-  d[n].name = d[n].attribs = NULL;
+  d[n].name = NULL;
+  d[n].attribs = NULL;
   VAL(dst) = d;
 }
 
--- a/subreader.c	Sun Jun 01 22:10:44 2003 +0000
+++ b/subreader.c	Sun Jun 01 22:16:41 2003 +0000
@@ -1648,7 +1648,7 @@
     for (j = 0; j <= 1; j++) {
 	d = opendir(j == 0 ? f_dir : path);
 	if (d) {
-	    while (de = readdir(d)) {
+	    while ((de = readdir(d))) {
 		// retrieve various parts of the filename
 		strcpy_strip_ext(tmp_fname_noext, de->d_name);
 		strcpy_get_ext(tmp_fname_ext, de->d_name);