* src/mcs51/gen.c (genCmp): fixed bug #975903
[fw/sdcc] / src / pic16 / gen.c
index 6fbc8173c28fdb599560df018ba1767f3485bedf..80c0393fb6e9716fc6d6a371e061f533a99487e5 100644 (file)
@@ -846,7 +846,8 @@ static bool operandsEqu ( operand *op1, operand *op2)
     if (sym1 == sym2)
         return TRUE ;
 
-    if (strcmp(sym1->rname,sym2->rname) == 0)
+    if (sym1->rname[0] && sym2->rname[0]
+        && strcmp (sym1->rname, sym2->rname) == 0)
         return TRUE;