Skip to content

Commit 7e09e4c

Browse files
committed
bad pointer test
1 parent 5c0aaee commit 7e09e4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sr_post.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ void sr_post_message(struct sr_context *sr_c, struct sr_message_s *m)
519519
if (sr_c->cfg->post_broker->exchangeSplit > 0) {
520520
int tot=0;
521521
char *basis=NULL;
522-
if ( m->relPath ) { basis=m->relPath; }
522+
if ( *(m->relPath) ) { basis=m->relPath; }
523523
// else if (m->retrievePath) { basis=m->retrievePath; }
524524

525525
tot=0;

0 commit comments

Comments
 (0)