Keep controller_load_check_arg() from crashing when filename doesn't contain '/'.
'slash' would be used uninitialized in this case. While we're here, change code to use strrchr() instead of rolling our own and only stat() a filename if we've found a '/', since we know 'extern->filename' will not contain a directory name otherwise. modified: controller/controller_load.c
Please register or sign in to comment