VirtualBox

Changeset 2114 in kBuild for trunk


Ignore:
Timestamp:
Dec 25, 2008 1:32:31 PM (16 years ago)
Author:
bird
Message:

redirect.c: warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/kmkbuiltin/redirect.c

    r2113 r2114  
    254254            if (*psz == 'Z')
    255255            {
    256                 unsigned i = 0;
    257                 while (envp[i] != NULL)
    258                     i++;
    259                 while (i-- > 0)
    260                 {
    261                     char *pszEqual = strchr(envp[i], '=');
     256                unsigned j = 0;
     257                while (envp[j] != NULL)
     258                    j++;
     259                while (j-- > 0)
     260                {
     261                    char *pszEqual = strchr(envp[j], '=');
    262262                    char *pszCopy;
    263263
    264264                    if (pszEqual)
    265265                        *pszEqual = '\0';
    266                     pszCopy = strdup(envp[i]);
     266                    pszCopy = strdup(envp[j]);
    267267                    if (pszEqual)
    268268                        *pszEqual = '=';
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette