Ticket #600: misc.c.patch

File misc.c.patch, 444 bytes (added by dogbert2, 9 years ago)

Patch file for ticket #600

  • misc.c

    old new  
    16511651  if (path)
    16521652    {
    16531653      char *path_cp = strdup(path); /* POSIX basename() implementaions may modify its arguments */
     1654      if (path_cp == NULL) {
     1655        msg(M_FATAL, "Unable to allocate memory for path_cp in argv_extract_cmd_name.\n");
     1656        return NULL;
     1657      }
    16541658      const char *bn = basename (path_cp);
    16551659      if (bn)
    16561660        {