srd_decoder_doc_get(NULL) segfaults, it should return SR_ERR_ARG though. This was exposed by the libsigrokdecode testsuite.
Test was wrong, fixed in 092f1437d385585ebf12c6a060e753ba812d1700