Changeset 2970 in MondoRescue for branches/3.0/mondo/src/lib/mr_str.c


Ignore:
Timestamp:
Mar 27, 2012, 12:40:46 PM (9 years ago)
Author:
Bruno Cornec
Message:
  • Fixes some valgrind warnings
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/mondo/src/lib/mr_str.c

    r1924 r2970  
    2828    size_t pos1 = 0;
    2929    size_t pos2 = 0;
     30
     31    if (instr == NULL) {
     32        *lastpos = 0;
     33        return token;
     34    }
    3035
    3136    if (strlen(instr) <= *lastpos) {
Note: See TracChangeset for help on using the changeset viewer.