Ecore con: Prevent possible use of uninitialised buffer on the stack.
authorTom Hacohen <tom@stosb.com>
Sun, 4 Oct 2015 15:27:52 +0000 (16:27 +0100)
committerTom Hacohen <tom@stosb.com>
Sun, 4 Oct 2015 15:31:43 +0000 (16:31 +0100)
commit681328feb54e92e8653f7d4913ed6d6b78e84437
tree8e4a251f5a62ac7eb112d994594516d51e4a2623
parentfa2ecb3af66500c95af3566103fcebc792e795e1
Ecore con: Prevent possible use of uninitialised buffer on the stack.

I'm not actually sure if it's a false, because finding the possible
options is hard. Just to be safe, it's better to set buf to "" in the
else case. I'm doing this instead of initialising the variable so the
compiler/static analyser will be able to warn us if there are other code
paths that should probably set buf, but don't.

CID 1316016

@fix
src/lib/ecore_con/ecore_con_local.c