Changeset 3334


Ignore:
Timestamp:
Jan 26, 2015, 10:04:57 AM (4 years ago)
Author:
bruno
Message:
  • Fix #764 by checking the value of bkpinfo->include_paths before using it if -I is used
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/common/libmondo-cli.c

    r3256 r3334  
    234234            log_to_screen("Please supply a sensible value with '-I'\n");
    235235        }
    236         if (!strcmp(bkpinfo->include_paths, "/")) {
     236        if (bkpinfo->include_paths && !strcmp(bkpinfo->include_paths, "/")) {
    237237            log_msg(2, "'/' is pleonastic.");
    238238            mr_free(bkpinfo->include_paths);
    239239        }
    240         if (bkpinfo->include_paths[0]) {
     240        if (bkpinfo->include_paths && bkpinfo->include_paths[0]) {
    241241            mr_strcat(bkpinfo->include_paths, "|");
    242242        }
Note: See TracChangeset for help on using the changeset viewer.