Skip to content

Commit

Permalink
Tcl: Return directly after contract retrieval
Browse files Browse the repository at this point in the history
Before this update the `tcl` plugin would report that it was unable to
read the configuration file, if the `KeySet` managed by the plugin was
empty.
  • Loading branch information
sanssecours committed Jun 9, 2018
1 parent a07f368 commit 0c27dab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/news/_preparation_next_release.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ Many problems were resolved with the following fixes:
being configurable. *(Thomas Wahringer)*
- Disable Markdown Shell Recorder test `validation.md` for ASAN builds.
It leaks memory and thus fails the test during spec mount. *(Lukas Winkler)*
- The [`tcl`](http://libelektra.org/plugins/tcl) plugin does not fail anymore, if its configuration file does not exist and you trie to
retrieve the plugin contract. *(René Schwaiger)*

## Outlook

Expand Down
1 change: 1 addition & 0 deletions src/plugins/tcl/tcl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ int elektraTclGet (Plugin *, KeySet * returned, Key * parentKey)
#include "readme_tcl.c"
keyNew ("system/elektra/modules/tcl/infos/version", KEY_VALUE, PLUGINVERSION, KEY_END), KS_END));
ksDel (n);
return ELEKTRA_PLUGIN_STATUS_SUCCESS;
}
/* get all keys */

Expand Down

0 comments on commit 0c27dab

Please sign in to comment.