neels has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/asn1c/+/39378?usp=email )


Change subject: coverity CID#300603
......................................................................

coverity CID#300603

Change-Id: I1cab41ff53fb3c7d94a07cb148197324f4188d9c
---
M libasn1parser/asn1p_expr.c
1 file changed, 4 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/asn1c refs/changes/78/39378/1

diff --git a/libasn1parser/asn1p_expr.c b/libasn1parser/asn1p_expr.c
index e2d280c..7d1b4fc 100644
--- a/libasn1parser/asn1p_expr.c
+++ b/libasn1parser/asn1p_expr.c
@@ -30,6 +30,10 @@

 int
 asn1p_expr_compare(const asn1p_expr_t *a, const asn1p_expr_t *b) {
+    if (a == b) {
+        return 0;
+    }
+
     if((a && !b) || (!a && b)) {
         return -1;
     }

--
To view, visit https://gerrit.osmocom.org/c/asn1c/+/39378?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: asn1c
Gerrit-Branch: master
Gerrit-Change-Id: I1cab41ff53fb3c7d94a07cb148197324f4188d9c
Gerrit-Change-Number: 39378
Gerrit-PatchSet: 1
Gerrit-Owner: neels <[email protected]>

Reply via email to