From f0abb041cf94f620c22987bab1ab4a49645141af Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Sat, 2 Nov 2013 21:26:33 +0400 Subject: shaper: remove garbage (fixed sigsegv in 'shaper restore all') Signed-off-by: Kozlov Dmitry --- accel-pppd/shaper/shaper.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'accel-pppd') diff --git a/accel-pppd/shaper/shaper.c b/accel-pppd/shaper/shaper.c index 6b788b55..d1742b41 100644 --- a/accel-pppd/shaper/shaper.c +++ b/accel-pppd/shaper/shaper.c @@ -558,9 +558,6 @@ static int shaper_restore_exec(const char *cmd, char * const *f, int f_cnt, void { struct shaper_pd_t *pd; int all, found = 0;; - int *ptr = 0; - - *ptr = 1; if (f_cnt != 3) return CLI_CMD_SYNTAX; -- cgit v1.2.3