Changeset 84239b1 in mainline for boot/genarch/src/ofw_tree.c


Ignore:
Timestamp:
2018-03-11T19:39:11Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f3d47c97
Parents:
850fd32
Message:

And there was much fixing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/genarch/src/ofw_tree.c

    r850fd32 r84239b1  
    110110                /* Find last slash */
    111111                size_t i;
    112                 for (i = len; (i > 0) && (path[i - 1] != '/'); i--);
     112                i = len;
     113                while (i > 0 && path[i - 1] != '/')
     114                        i--;
    113115
    114116                /* Do not include the slash */
Note: See TracChangeset for help on using the changeset viewer.