From 9013a363807786e0146b785e474b6e297a1533ce Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Wed, 27 Jun 2018 11:53:00 +0200 Subject: [PATCH] Use travis-ci for testing. --- .travis.yml | 17 +++++++++++++++++ src/input.c | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..e3d78a5 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,17 @@ +branches: + except: + gh-pages + +language: c +dist: trusty +sudo: required + +compiler: + - clang + +before_install: + - sudo add-apt-repository ppa:webkit-team/ppa -y + - sudo apt-get update -q + - sudo apt-get install -y --allow-unauthenticated --no-install-suggests libwebkit2gtk-4.0-dev + +script: make V=1 test diff --git a/src/input.c b/src/input.c index 4f27588..607b07b 100644 --- a/src/input.c +++ b/src/input.c @@ -112,7 +112,7 @@ VbResult input_open_editor(Client *c) { static unsigned long element_map_key = 0; char *element_id = NULL, *command = NULL; - char **argv, *file_path = NULL; + char **argv = NULL, *file_path = NULL; const char *text = NULL, *id = NULL, *editor_command; int argc; GPid pid; -- 2.20.1