diff options
author | Thomas Haller <thaller@redhat.com> | 2015-07-09 16:12:31 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2015-07-09 16:12:31 +0200 |
commit | e101167e55a99756cda8f86a7677959654dcbb8c (patch) | |
tree | 11bc374d0e1d9ed5b48548bf2a26accfdc82509f | |
parent | 2deaa3992151fa639cf0ce139fec2a0170da69f1 (diff) | |
download | NetworkManager-e101167e55a99756cda8f86a7677959654dcbb8c.tar.gz |
systemd: fix compiler warning about uninitialized variable
make[4]: Entering directory './NetworkManager/src'
CC libsystemd_nm_la-util.lo
systemd/src/basic/util.c: In function 'cunescape_length_with_prefix':
systemd/src/basic/util.c:1271:30: error: 'u' may be used uninitialized in this function [-Werror=maybe-uninitialized]
t += utf8_encode_unichar(t, u);
^
systemd/src/basic/util.c:1230:26: note: 'u' was declared here
uint32_t u;
^
-rw-r--r-- | src/systemd/src/basic/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemd/src/basic/util.c b/src/systemd/src/basic/util.c index 8fe59574f8..6b07face07 100644 --- a/src/systemd/src/basic/util.c +++ b/src/systemd/src/basic/util.c @@ -1227,7 +1227,7 @@ int cunescape_length_with_prefix(const char *s, size_t length, const char *prefi for (f = s, t = r + pl; f < s + length; f++) { size_t remaining; - uint32_t u; + uint32_t u = 0; char c; int k; |