X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=adns.git;a=blobdiff_plain;f=regress%2Fhcommon.c;h=0aa3ffb05e58550310f050f708ed06ebc1b95602;hp=e63a8cda57a0b30d40aefdc87c7bb5f46ef64e06;hb=e7308d2612173a14b26f797ae3aca830859ea3bf;hpb=d8fa191ed7774818862febd6ade774cb7e149ab9 diff --git a/regress/hcommon.c b/regress/hcommon.c index e63a8cd..0aa3ffb 100644 --- a/regress/hcommon.c +++ b/regress/hcommon.c @@ -167,6 +167,10 @@ void Tvbbytes(const void *buf, int len) { void Tvbfdset(int max, const fd_set *fds) { int i; const char *comma= ""; + if (!fds) { + Tvba("null"); + return; + } Tvba("["); for (i=0; i