From c8b4daf188f2ed201a07c754d9a4983fc7f233ad Mon Sep 17 00:00:00 2001 From: skarg Date: Fri, 10 Feb 2006 12:51:56 +0000 Subject: [PATCH] Added additional tests for null strings in bacstr module when comparing strings. --- bacnet-stack/bacstr.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bacnet-stack/bacstr.c b/bacnet-stack/bacstr.c index 513f8cf0..106b6dfe 100644 --- a/bacnet-stack/bacstr.c +++ b/bacnet-stack/bacstr.c @@ -257,6 +257,16 @@ bool characterstring_same( } } } + else if (src) + { + if (src->length == 0) + same_status = true; + } + else if (dest) + { + if (dest->length == 0) + same_status = true; + } return same_status; }