Skip to content

Commit

Permalink
pdbtool: Initialize module_path
Browse files Browse the repository at this point in the history
With the reloc patch that went in a while ago, module_path has to be
explicitly initialized, otherwise it will remain empty. And if it
remains empty, and we try to split it, GLib will spew warnings at us.

This patch adds the initialisation.

Reported-by: Andras Mitzki <micek@balabit.hu>
Signed-off-by: Gergely Nagy <algernon@balabit.hu>
  • Loading branch information
algernon committed Dec 9, 2013
1 parent 955b9f3 commit 4e42f0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/dbparser/pdbtool/pdbtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -1158,6 +1158,8 @@ main(int argc, char *argv[])
log_tags_global_init();
pattern_db_global_init();

module_path = get_installation_path_for(MODULE_PATH);

configuration = cfg_new(VERSION_VALUE);

if (!g_option_context_parse(ctx, &argc, &argv, &error))
Expand Down

0 comments on commit 4e42f0f

Please sign in to comment.