Markus Armbruster
fedf0d35aa
ui: Use g_new() & friends where that makes obvious sense
...
g_new(T, n) is neater than g_malloc(sizeof(T) * n). It's also safer,
for two reasons. One, it catches multiplication overflowing size_t.
Two, it returns T * rather than void *, which lets the compiler catch
more type errors.
This commit only touches allocations with size arguments of the form
sizeof(T). Same Coccinelle semantic patch as in commit b45c03f.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2015-11-06 15:42:38 +03:00
..
2015-05-05 10:48:22 +02:00
2015-10-16 11:06:19 +01:00
2015-10-08 10:31:35 +02:00
2015-11-06 15:42:38 +03:00
2015-11-03 10:12:46 +01:00
2015-11-06 15:42:38 +03:00
2012-12-19 08:31:30 +01:00
2012-12-19 08:31:30 +01:00
2012-12-19 08:31:30 +01:00
2015-10-08 10:34:53 +02:00
2015-05-29 11:11:38 +02:00
2015-10-08 10:34:53 +02:00
2015-10-08 10:34:53 +02:00
2015-10-19 10:13:07 +02:00
2015-11-02 08:30:28 +01:00
2015-11-06 15:42:38 +03:00
2015-11-06 10:16:03 +01:00
2015-11-06 15:42:38 +03:00
2015-10-08 10:34:53 +02:00
2015-01-19 13:33:26 +01:00
2012-12-19 08:31:30 +01:00
2015-10-08 10:31:35 +02:00
2015-05-05 10:48:26 +02:00
2015-05-05 10:48:26 +02:00
2014-09-16 08:07:05 +02:00
2015-06-09 10:25:21 +02:00
2014-03-05 09:52:05 +01:00
2013-01-15 18:25:30 -06:00
2013-01-15 18:25:30 -06:00
2015-11-06 15:42:38 +03:00
2015-10-08 10:31:35 +02:00
2015-11-02 08:30:26 +01:00
2015-09-21 09:52:07 +02:00
2014-03-24 08:41:21 +01:00
2012-12-19 08:31:30 +01:00
2015-03-10 08:15:34 +03:00
2015-09-15 15:20:55 +01:00
2013-08-22 19:10:27 +02:00
2015-09-15 15:20:55 +01:00
2012-11-01 14:00:04 +01:00
2012-11-01 14:00:05 +01:00
2014-12-10 10:08:12 +01:00
2010-07-26 17:36:14 -05:00
2011-08-20 23:01:08 -05:00
2011-02-23 16:28:28 -06:00
2012-11-01 14:00:04 +01:00
2011-02-23 16:28:28 -06:00
2011-12-14 11:09:44 +00:00
2013-10-26 13:06:45 +04:00
2015-11-06 15:42:38 +03:00
2015-03-10 08:15:33 +03:00
2012-12-06 09:17:05 +01:00
2012-12-19 08:32:39 +01:00
2015-09-15 15:20:55 +01:00
2015-09-15 15:20:55 +01:00
2015-11-06 15:42:38 +03:00
2015-10-20 14:59:09 +01:00
2015-05-29 10:30:06 +02:00
2011-01-23 16:21:20 +00:00