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 13, 2018
1 parent c68b78f commit 0fac193
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/news/_preparation_next_release.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ Thanks to Armin Wurzinger.
commonly used specification keywords to be used with the [typechecker](https://www.libelektra.org/plugins/typechecker). Currently the
keywords `check/range`, `check/enum` and `check/validation` are supported. *(Armin Wurzinger)*

### Tcl

- The [`tcl`](http://libelektra.org/plugins/tcl) plugin does not fail anymore, if its configuration file does not exist and you try to
retrieve the plugin contract. *(René Schwaiger)*

### Misc

- The logging plugins ["syslog"](https://www.libelektra.org/plugins/syslog),
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 0fac193

Please sign in to comment.