From: Lionel Sambuc Date: Sun, 4 Oct 2015 10:47:57 +0000 (-0700) Subject: Fix gcc -O1 builds for ARM X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=41a30155b93b5fdc3b6a018df059658fbb97e8b4;p=minix.git Fix gcc -O1 builds for ARM The builds are failing as GCC somehow thinks ino might be uninitialized before use. Change-Id: Id99fd5e46bcbaafd5001752e16c3f77c1d568556 --- diff --git a/minix/lib/libsffs/lookup.c b/minix/lib/libsffs/lookup.c index ca5324b78..fbc786b08 100644 --- a/minix/lib/libsffs/lookup.c +++ b/minix/lib/libsffs/lookup.c @@ -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;