Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/mcjoin.c
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ int main(int argc, char *argv[])
if (!g)
FATAL("failed allocating group: %s", strerror(errno));

g->group = strdup(DEFAULT_GROUP);
g->group = DEFAULT_GROUP;
TAILQ_INSERT_TAIL(&groups, g, entry);
group_num++;
}
Expand Down
4 changes: 2 additions & 2 deletions src/mcjoin.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ struct gr {
size_t order;
size_t delayed;
size_t invalid;
char *source;
char *group;
const char *source;
const char *group;
inet_addr_t src;
inet_addr_t grp; /* to */
size_t seqnos[STATUS_HISTORY]; /* for dup detection */
Expand Down