From 4f4060f6abbfa004e0eb63b7c447776cc74c8d66 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Sat, 8 Sep 2018 20:16:59 +0200 Subject: *: fix clang-6 SA warnings I don't see these in CI, but my local clang-6 does emit warnings for these. Signed-off-by: David Lamparter --- lib/command.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/command.c') diff --git a/lib/command.c b/lib/command.c index 1df6442107..3cc6806a88 100644 --- a/lib/command.c +++ b/lib/command.c @@ -1197,6 +1197,7 @@ static int handle_pipe_action(struct vty *vty, const char *cmd_in, /* retrieve action */ token = strsep(&working, " "); + assert(token); /* match result to known actions */ if (strmatch(token, "include")) { -- cgit v1.2.3