From b1a677d07fbca0cf63b42c87f8543e7f416bec0d Mon Sep 17 00:00:00 2001 From: Vineet Gupta Date: Fri, 8 May 2015 11:35:58 +0530 Subject: [PATCH] Fix garbage pointer for lat_rpc -S localhost This patch is used by buildroot: https://gitlab.com/buildroot.org/buildroot/-/commit/e1137c06a0db69ba0724f22cd09ea92b82ac59a6 Signed-off-by: Vineet Gupta Signed-off-by: Bernd Kuhls --- src/lat_rpc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lat_rpc.c b/src/lat_rpc.c index 3ebfb16..0140925 100644 --- a/src/lat_rpc.c +++ b/src/lat_rpc.c @@ -105,6 +105,7 @@ main(int ac, char **av) char *usage = "-s\n OR [-p ] [-P parallel] [-W ] [-N ] serverhost\n OR -S serverhost\n"; state.msize = 1; + state.server = NULL; while (( c = getopt(ac, av, "sS:m:p:P:W:N:")) != EOF) { switch(c) {