rgb-cln/plugins
William Casarin 9aaf2fe8d4 build: fix uninitialized variable error on gcc 7.4.0
*best is checked for null before the comparison against the uninitialized
variable ever happens, so this isn't a real issue.

Initialize it to zero so that we don't fail to compile on certain gcc versions.

plugins/pay.c: In function ‘add_shadow_route’:
plugins/pay.c:644:18: error: ‘sample’ may be used uninitialized in this function
   if (!best || v > sample) {
                ~~^~~~~~~~

Signed-off-by: William Casarin <jb55@jb55.com>
2019-03-03 14:47:33 +01:00
..
.gitignore plugins: minimal 'pay' plugin. 2019-01-17 13:02:24 +01:00
Makefile common/json_tok: add param_msat / param_sat. 2019-02-21 03:44:44 +00:00
README.md plugins: add and install built-in plugin dir, add clear and disable options. 2018-12-05 01:22:55 +01:00
libplugin.c libplugin: add deprecated_apis flag for plugins to access. 2019-02-23 05:45:25 +00:00
libplugin.h libplugin: add deprecated_apis flag for plugins to access. 2019-02-23 05:45:25 +00:00
pay.c build: fix uninitialized variable error on gcc 7.4.0 2019-03-03 14:47:33 +01:00

README.md

Plugin Directory

Anything file in this directory which is executable and doesn't start and doesn't contain ASCII symbols other than '.', '-' or '_' will be automatically loaded when lightningd starts (unless suppressed with commandline options).