Ticket #600: misc.c.patch
File misc.c.patch, 444 bytes (added by , 9 years ago) |
---|
-
misc.c
old new 1651 1651 if (path) 1652 1652 { 1653 1653 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 } 1654 1658 const char *bn = basename (path_cp); 1655 1659 if (bn) 1656 1660 {