Module Name: src Committed By: sjg Date: Wed Dec 27 00:45:37 UTC 2023
Modified Files: src/usr.bin/make: main.c Log Message: make: ensure shellPath is set before using it. To generate a diff of this commit: cvs rdiff -u -r1.605 -r1.606 src/usr.bin/make/main.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/make/main.c diff -u src/usr.bin/make/main.c:1.605 src/usr.bin/make/main.c:1.606 --- src/usr.bin/make/main.c:1.605 Sun Dec 17 09:02:26 2023 +++ src/usr.bin/make/main.c Wed Dec 27 00:45:37 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: main.c,v 1.605 2023/12/17 09:02:26 rillig Exp $ */ +/* $NetBSD: main.c,v 1.606 2023/12/27 00:45:37 sjg Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1993 @@ -111,7 +111,7 @@ #include "trace.h" /* "@(#)main.c 8.3 (Berkeley) 3/19/94" */ -MAKE_RCSID("$NetBSD: main.c,v 1.605 2023/12/17 09:02:26 rillig Exp $"); +MAKE_RCSID("$NetBSD: main.c,v 1.606 2023/12/27 00:45:37 sjg Exp $"); #if defined(MAKE_NATIVE) __COPYRIGHT("@(#) Copyright (c) 1988, 1989, 1990, 1993 " "The Regents of the University of California. " @@ -1706,7 +1706,7 @@ Cmd_Exec(const char *cmd, char **error) char *p; int saved_errno; - if (shellName == NULL) + if (shellPath == NULL) Shell_Init(); args[0] = shellName;