Skip to content

Commit 80e2ede

Browse files
committed
fix: ignore empty comments
1 parent b388c4a commit 80e2ede

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/core/context.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ bool rd_set_comment(RDContext* self, RDAddress address, const char* cmt) {
598598
return true;
599599
}
600600

601-
if(cmt) {
601+
if(cmt && *cmt) {
602602
rd_i_flagsbuffer_set_comment(seg->flags, idx);
603603
rd_i_db_set_comment(self, address, cmt);
604604
return true;

0 commit comments

Comments
 (0)