diff options
author | Anders Broman <anders.broman@ericsson.com> | 2012-05-21 07:42:09 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2012-05-21 07:42:09 +0000 |
commit | fec821f30371ef58b51e8d3c583c2c88698c86aa (patch) | |
tree | 3b5f7f321710d5638427e95037e6a913ddb2cc05 /epan/wslua/wslua_gui.c | |
parent | 35dd3b052e688fbdbc67c9cf0dcc42e6c5dc78ef (diff) | |
download | wireshark-fec821f30371ef58b51e8d3c583c2c88698c86aa.tar.gz wireshark-fec821f30371ef58b51e8d3c583c2c88698c86aa.tar.bz2 wireshark-fec821f30371ef58b51e8d3c583c2c88698c86aa.zip |
From Evan Huus:
Fix Three memory leaks and a bad if-condition, as caught by CppCheck.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7272
svn path=/trunk/; revision=42738
Diffstat (limited to 'epan/wslua/wslua_gui.c')
-rw-r--r-- | epan/wslua/wslua_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/wslua/wslua_gui.c b/epan/wslua/wslua_gui.c index 58615bbcf8..558a0f0d14 100644 --- a/epan/wslua/wslua_gui.c +++ b/epan/wslua/wslua_gui.c @@ -317,7 +317,7 @@ WSLUA_METHOD ProgDlg_update(lua_State* L) { /* Appends text */ WSLUA_ERROR(ProgDlg_update,"Cannot be called for something not a ProgDlg"); } */ - if (pr >= 0.0 || pr <= 1.0) { + if (pr >= 0.0 && pr <= 1.0) { ops->update_progress(pd->pw, (float) pr, task); } else { WSLUA_ERROR(ProgDlg_update,"Progress value out of range (must be between 0.0 and 1.0)"); |