]> Zhao Yanbai Git Server - minix.git/commitdiff
Fix gcc -O1 builds for ARM 06/3206/1
authorLionel Sambuc <lionel.sambuc@gmail.com>
Sun, 4 Oct 2015 10:47:57 +0000 (03:47 -0700)
committerLionel Sambuc <lionel.sambuc@gmail.com>
Sun, 4 Oct 2015 10:47:57 +0000 (03:47 -0700)
The builds are failing as GCC somehow thinks ino might be
uninitialized before use.

Change-Id: Id99fd5e46bcbaafd5001752e16c3f77c1d568556

minix/lib/libsffs/lookup.c

index ca5324b784187f40ef6501f01e57a4a238850636..fbc786b080be2c9dad1eebc0fad601c9136731b8 100644 (file)
@@ -107,7 +107,7 @@ int do_lookup(ino_t dir_nr, char *name, struct fsdriver_node *node,
 {
 /* Resolve a path string to an inode.
  */
-  struct inode *dir_ino, *ino;
+  struct inode *dir_ino, *ino = NULL;
   struct sffs_attr attr;
   char path[PATH_MAX];
   int r;