diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-01-25 16:17:55 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-01-25 16:28:37 -0800 |
commit | 3f261f56f3401695d0577598624dddc09243b371 (patch) | |
tree | 65826e8fb34827a2bb4a417ef5595023610d595c /windows.c | |
parent | 3ab27e65e8086199d6d23f0bd5d6f5a22b37a349 (diff) | |
download | subsurface-3f261f56f3401695d0577598624dddc09243b371.tar.gz |
Remove some unnecessary variable initializations
Not really bugs, just wasted. They clutter up the output of static
analysis with cppcheck.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'windows.c')
-rw-r--r-- | windows.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -53,7 +53,7 @@ void subsurface_set_conf(char *name, const char *value) * to pass the boolean value), the other one passes value (the * address of the string. */ int wlen; - wchar_t *wname = NULL, *wstring = NULL; + wchar_t *wname, *wstring; wname = (wchar_t *)g_utf8_to_utf16(name, -1, NULL, NULL, NULL); if (!wname) @@ -73,7 +73,7 @@ void subsurface_set_conf(char *name, const char *value) void subsurface_set_conf_bool(char *name, int value) { - wchar_t *wname = NULL; + wchar_t *wname; wname = (wchar_t *)g_utf8_to_utf16(name, -1, NULL, NULL, NULL); if (!wname) @@ -89,7 +89,7 @@ const void *subsurface_get_conf(char *name) const int csize = 64; int blen = 0; LONG ret = ERROR_MORE_DATA; - wchar_t *wstring = NULL, *wname = NULL; + wchar_t *wstring = NULL, *wname; char *utf8_string; wname = (wchar_t *)g_utf8_to_utf16(name, -1, NULL, NULL, NULL); |