Declare variable at proper place (bug #2096)
Merge pull request #2097 from chaen/rel-v6r12_FIX_fts_summary

[v6r12] Fix dirac-dms-ftsdb-summary