1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-04 12:52:15 +00:00

Fix broken (at least on alpha, but probably on i386 too) code which

is supposed to walk an arry of character pointers, not an array of
characters.
This commit is contained in:
John Birrell 1998-05-13 05:50:42 +00:00
parent 3b5745a500
commit c021a0a9d0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=35993

View File

@ -35,7 +35,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: compat.c,v 1.8 1997/02/22 19:27:07 peter Exp $
* $Id: compat.c,v 1.9 1998/05/12 11:54:12 wosch Exp $
*/
#ifndef lint
@ -149,12 +149,12 @@ static int
shellneed (cmd)
char *cmd;
{
char **av, *p;
char **av, **p;
int ac;
av = brk_string(cmd, &ac, TRUE);
for(p = *sh_builtin; p != 0; p++)
if (strcmp(av[1], p) == 0)
for(p = sh_builtin; *p != 0; p++)
if (strcmp(av[1], *p) == 0)
return (1);
return (0);
}