diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-01-12 13:33:35 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-01-12 13:33:35 -0800 |
commit | 89069fdaa4fff2f8b703fef0be260eb4d4c2ed9b (patch) | |
tree | 89d1d66d214ae3f149c8e152b1fd7cd204395670 /autoload.cpp | |
parent | 1130e4782de6378a7ad2cbb39cfb1626d7233fe8 (diff) |
Miscellaneous minor fixes based on cppcheck static analyzer
Diffstat (limited to 'autoload.cpp')
-rw-r--r-- | autoload.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/autoload.cpp b/autoload.cpp index 3470ecae..e5d2334d 100644 --- a/autoload.cpp +++ b/autoload.cpp @@ -195,7 +195,6 @@ autoload_function_t *autoload_t::get_autoloaded_function_with_creation(const wcs bool autoload_t::locate_file_and_maybe_load_it(const wcstring &cmd, bool really_load, bool reload, const wcstring_list_t &path_list) { /* Note that we are NOT locked in this function! */ - size_t i; bool reloaded = 0; /* Try using a cached function. If we really want the function to be loaded, require that it be really loaded. If we're not reloading, allow stale functions. */ @@ -276,7 +275,7 @@ bool autoload_t::locate_file_and_maybe_load_it(const wcstring &cmd, bool really_ if (! has_script_source) { /* Iterate over path searching for suitable completion files */ - for (i=0; i<path_list.size(); i++) + for (size_t i=0; i<path_list.size(); i++) { wcstring next = path_list.at(i); wcstring path = next + L"/" + cmd + L".fish"; |