Evas: Fix some clang warnings in evas_cs2_client.c
authorJean-Philippe Andre <jp.andre@samsung.com>
Tue, 7 Jan 2014 06:46:44 +0000 (15:46 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 7 Jan 2014 06:51:56 +0000 (15:51 +0900)
commit5f601cd7539de157d0d07df420349fbab47008a9
tree64efdf50fc4ab660e38e28920476b93986dcd5c6
parentcb9dedd44dd3f89a169b3d35da72c758d31fc961
Evas: Fix some clang warnings in evas_cs2_client.c

- Invalid alloc size (typo)
- Initialized value never read (set twice)
- Potential memleak (call free(msg) in case of send error)
- Null pointer dereference (check nullity)

There are still other warnings, but I believe these are false
positives.
src/lib/evas/cserve2/evas_cs2_client.c