diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2008-02-26 23:05:05 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2008-02-26 23:05:05 +0000 |
commit | 7ffc01c6cef9db6b9e91446ff68d27c6050ea5ab (patch) | |
tree | d896d522fc11fb964c4d7af74da89101858ee39c /epan/wslua/wslua_util.c | |
parent | 45a373d6aeedf5c5513f1280c2a957574fce793e (diff) |
Oops, freeing a const char* doesn't always work. Make it not a const.
svn path=/trunk/; revision=24482
Diffstat (limited to 'epan/wslua/wslua_util.c')
-rw-r--r-- | epan/wslua/wslua_util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/wslua/wslua_util.c b/epan/wslua/wslua_util.c index f6fbd2ca46..2cb22b1de8 100644 --- a/epan/wslua/wslua_util.c +++ b/epan/wslua/wslua_util.c @@ -183,7 +183,7 @@ WSLUA_FUNCTION wslua_loadfile(lua_State* L) { in the current directory it will look for it in wireshark's user and system directories */ #define WSLUA_ARG_loadfile_FILENAME 1 /* name of the file to be loaded */ const char *given_fname = luaL_checkstring(L, WSLUA_ARG_loadfile_FILENAME); - const char* filename; + char* filename; filename = wslua_get_actual_filename(given_fname); @@ -205,7 +205,7 @@ WSLUA_FUNCTION wslua_dofile(lua_State* L) { in the current directory it will look for it in wireshark's user and system directories */ #define WSLUA_ARG_dofile_FILENAME 1 /* name of the file to be run */ const char *given_fname = luaL_checkstring(L, WSLUA_ARG_dofile_FILENAME); - const char* filename; + char* filename; int n; if (!given_fname) WSLUA_ARG_ERROR(dofile,FILENAME,"must be a string"); @@ -251,7 +251,7 @@ WSLUA_CONSTRUCTOR Dir_open(lua_State* L) { const char* dirname = luaL_checkstring(L,WSLUA_ARG_Dir_open_PATHNAME); const char* extension = luaL_optstring(L,WSLUA_OPTARG_Dir_open_EXTENSION,NULL); Dir dir; - const char* dirname_clean; + char* dirname_clean; if (!dirname) WSLUA_ARG_ERROR(Dir_open,PATHNAME,"must be a string"); |