Fix for segfault when parsing dcap:///