Skip to content

Commit fbc6942

Browse files
committed
Delete unnecessary assignment in nc_err_set_msg().
In nc_err_set_msg() in the file src/messages.c, cppcheck noticed an unnecessary "lang = NULL;" assignment in an "else" branch where it is known that lang is NULL. So, delete it.
1 parent 7269b00 commit fbc6942

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/messages_server.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,8 +630,6 @@ nc_err_set_msg(struct nc_server_error *err, const char *error_message, const cha
630630
}
631631
if (lang) {
632632
err->message_lang = lydict_insert(server_opts.ctx, lang, 0);
633-
} else {
634-
lang = NULL;
635633
}
636634

637635
return 0;

0 commit comments

Comments
 (0)