aboutsummaryrefslogtreecommitdiffstats
path: root/epan/oids.c
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2007-08-26 21:37:11 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2007-08-26 21:37:11 +0000
commit9a850615d17d9122d8ff7a7be53c1d3652e2bb57 (patch)
treea0270c59832cb882ef0228d175cf9d562be4f369 /epan/oids.c
parent088ba70162ed7eb34c030e5b8073079037f96bd2 (diff)
Give the files its propper title
Keep libsmi's default path and append the user given one svn path=/trunk/; revision=22677
Diffstat (limited to 'epan/oids.c')
-rw-r--r--epan/oids.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/epan/oids.c b/epan/oids.c
index 4ef6bac231..8302d7a0e6 100644
--- a/epan/oids.c
+++ b/epan/oids.c
@@ -1,5 +1,5 @@
/* oids.c
- * Routines for OBJECT IDENTIFIER operations
+ * Object IDentifier Support
*
* (c) 2007, Luis E. Garcia Ontanon <luis.ontanon@gmail.com>
*
@@ -483,6 +483,8 @@ void register_mibs(void) {
smi_paths_fields);
+ smiInit(NULL);
+
uat_load(smi_modules_uat, &smi_load_error);
if (smi_load_error) {
@@ -497,8 +499,10 @@ void register_mibs(void) {
return;
}
- path_str = g_string_new(get_datafile_path("mibs"));
- g_string_sprintfa(path_str,PATH_SEPARATOR "%s",get_persconffile_path("mibs", FALSE));
+ path_str = g_string_new(smiGetPath());
+ g_string_sprintfa(path_str, PATH_SEPARATOR "%s" PATH_SEPARATOR "%s",
+ get_datafile_path("mibs"),
+ get_persconffile_path("mibs", FALSE));
for(i=0;i<num_smi_paths;i++) {
if (!( smi_paths[i].name && *smi_paths[i].name))
@@ -508,9 +512,7 @@ void register_mibs(void) {
}
D(1,("SMI Path: '%s'",path_str->str));
-
- smiInit(NULL);
-
+
smiSetPath(path_str->str);
g_string_free(path_str,TRUE);