From a73667232364817b731c46f5ba4b8be6c4054d37 Mon Sep 17 00:00:00 2001 From: c9s Date: Tue, 3 Jun 2014 22:02:47 +0800 Subject: [PATCH] reduce variable declaration --- src/node.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/node.c b/src/node.c index cafa643..678231a 100644 --- a/src/node.c +++ b/src/node.c @@ -514,11 +514,8 @@ edge * r3_node_find_common_prefix(node *n, const char *path, int path_len, int * if (prefix > 0) { r3_slug_t *slug; int ret = 0; - char *p = NULL; - char *offset = NULL; - - offset = path; - p = path + prefix; + char *offset = (char*) path; + char *p = ((char*)path) + prefix; slug = r3_slug_new(path, path_len);