ioc/db: testdbGetFieldEqual() detect zero size

This commit is contained in:
Michael Davidsaver
2017-04-21 14:53:54 -04:00
parent 821fb1302b
commit 22b10adf29

View File

@@ -163,6 +163,9 @@ void testdbVGetFieldEqual(const char* pv, short dbrType, va_list ap)
if(status) {
testFail("dbGetField(\"%s\",%d,...) returns %ld", pv, dbrType, status);
return;
} else if(nReq==0) {
testFail("dbGetField(\"%s\", %d, ...) -> zero length", pv, dbrType);
return;
}
switch(dbrType) {