From 61b18ede9e98bc90cc9112962e7e1106c730c27a Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Sat, 5 Oct 1996 13:30:43 +0000 Subject: [PATCH] Erm. I'm sleepy. Handle the null-field case the way I actually meant to the first time. --- release/sysinstall/uc_main.c | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/release/sysinstall/uc_main.c b/release/sysinstall/uc_main.c index 7a9c13dbc27a..58431714212a 100644 --- a/release/sysinstall/uc_main.c +++ b/release/sysinstall/uc_main.c @@ -24,7 +24,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * library functions for userconfig library * - * $Id: uc_main.c,v 1.7 1996/10/05 10:43:49 jkh Exp $ + * $Id: uc_main.c,v 1.8 1996/10/05 11:56:50 jkh Exp $ */ #include @@ -114,17 +114,10 @@ uc_open(char *name){ nl[i].n_name = strdup(name); if (fscanf(fp, "%d %d %d %ld\n", &(nl[i].n_type), &(nl[i].n_other), &(nl[i].n_desc), &(nl[i].n_value)) != 4) { - if (name[0]) { - msgDebug("Unable to read symbol detail fields from symbol file, entry = %d\n", i); - free(kern); - return NULL; - } - else { - nl[i].n_type = 0; - nl[i].n_other = 0; - nl[i].n_desc = 0; - nl[i].n_value = 0; - } + nl[i].n_type = 0; + nl[i].n_other = 0; + nl[i].n_desc = 0; + nl[i].n_value = 0; } } fclose(fp);