• Augusto Caringi's avatar
    Avoid crashing if mistakenly just '-d' or '-v' is used · f2f67326
    Augusto Caringi authored
    Currently, if by mistake just '-v' or '-d' is used without any
    additional parameter (no filename nor -e 'program') bpftrace crashes:
    
    ./src/bpftrace -v
    terminate called after throwing an instance of 'std::logic_error'
    what():  basic_string::_M_construct null not valid
    Aborted (core dumped)
    
    This commit fix this problem.
    f2f67326
main.cpp 7.52 KB