Move static member inside the scope of the function
authorFrancis Ma <fma@fb.com>
Mon, 6 Oct 2014 23:34:06 +0000 (16:34 -0700)
committerAndrii Grynenko <andrii@fb.com>
Wed, 15 Oct 2014 00:55:18 +0000 (17:55 -0700)
commite401a93c31c351a48a21dae97fcd7c3b07d7790c
tree0301c01bedc5b77f6e629dc7ba23e234f4929e24
parenta04f2681dfcbebe4426184af3bcd795bd15152ec
Move static member inside the scope of the function

Summary: We are seeing crashes which comes from the initialization of the static global variable. This particular variable is used only in a single function that was never invoked. So moving it into the scope of the function will at least solve the problem. The real issue still requires some deep investigation though.

Test Plan: unitest under folly passed

Reviewed By: subodh@fb.com

Subscribers: seanc, njormrod

FB internal diff: D1598048

Tasks: 5316441
folly/IPAddressV4.cpp
folly/IPAddressV4.h