]> granicus.if.org Git - json-c/commit
json_pointer.c: Move idx_val declaration to top of function
authorKhem Raj <raj.khem@gmail.com>
Sun, 14 Aug 2022 07:46:28 +0000 (00:46 -0700)
committerKhem Raj <raj.khem@gmail.com>
Sun, 14 Aug 2022 07:46:28 +0000 (00:46 -0700)
commit257b29c9910938b54df379e7e14c4a653e06449d
treee96777d7b11ac5bf760a17876758a5366ae852eb
parentd1deed499f2c94c1ba39326fe1742c6f78bf455d
json_pointer.c: Move idx_val declaration to top of function

This helps compiling with MS compiler, error seems to be
due to defining a variable within the body of the function
its allowed in c99 but not in c89. This should fix build with
MSVC 16.0.40219.1 compiler from Visual Studio 14 2015

Signed-off-by: Khem Raj <raj.khem@gmail.com>
json_pointer.c