about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2015-09-01 14:33:10 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2015-09-01 14:33:10 +0200
commit5afb943df5dc483ca6199c5417871383cc2d3972 (patch)
tree73dc1fb05a399c90b149303af7330e864be864c5
parentb402147109bb3f763381e2c0adba875916a7818c (diff)
downloadredo-c-5afb943df5dc483ca6199c5417871383cc2d3972.tar.gz
redo-c-5afb943df5dc483ca6199c5417871383cc2d3972.tar.xz
redo-c-5afb943df5dc483ca6199c5417871383cc2d3972.zip
better struct stat initialization
-rw-r--r--redo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/redo.c b/redo.c
index b4d354f..c6eef92 100644
--- a/redo.c
+++ b/redo.c
@@ -229,8 +229,8 @@ find_dofile(char *target)
 	*u++ = '/';
 	*u = 0;
 
-	struct stat st = {0};
-	struct stat ost = {0};
+	struct stat st, ost;
+	st.st_dev = ost.st_dev = st.st_ino = ost.st_ino = 0;
 	
 	while (1) {
 		ost = st;