Jim Meyering a5cf8262e4 scsi, pci, qdev, isa-bus, sysbus: don't let *_get_fw_dev_path return NULL
Use g_strdup rather than strdup, because the sole caller
(qdev_get_fw_dev_path_helper) assumes it gets non-NULL, and dereferences
it.  Besides, in that caller, the allocated buffer is already freed with
g_free, so it's better to allocate with a matching g_strdup.

In one case, (scsi-bus.c) it was trivial, so I replaced an snprintf+
g_strdup combination with an equivalent g_strdup_printf use.

Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2012-10-05 07:58:36 -05:00
..
2012-08-13 16:13:02 +01:00
2010-06-13 19:00:50 +01:00
2012-07-04 15:52:55 +03:00
2012-08-13 16:10:18 -03:00
2012-08-22 10:47:17 -05:00
2012-02-15 09:39:21 -06:00
2012-09-05 15:48:57 -03:00
2011-12-06 09:56:41 +00:00
2012-07-28 09:23:11 +00:00
2012-08-22 10:47:17 -05:00
2012-01-04 02:48:14 +01:00
2012-02-15 09:39:21 -06:00
2012-03-14 22:20:26 +01:00
2012-08-28 14:49:59 +02:00
2012-08-01 12:56:15 +01:00
2009-03-28 16:17:50 +00:00
2012-08-22 10:47:17 -05:00
2012-08-22 10:47:17 -05:00
2012-08-01 12:56:15 +01:00
2012-08-21 15:18:24 -05:00
2012-07-04 10:43:33 +00:00
2012-07-04 10:43:33 +00:00
2012-07-04 10:43:33 +00:00
2012-08-01 12:56:15 +01:00
2012-09-23 07:11:28 +01:00
2012-09-25 18:38:18 -05:00
2012-02-24 13:36:04 -06:00
2012-09-07 17:35:34 +02:00
2012-09-23 07:11:28 +01:00
2012-09-10 13:52:28 -05:00
2012-08-01 12:56:15 +01:00
2012-08-28 12:48:39 +02:00
2012-08-03 10:04:37 +02:00
2012-02-15 09:39:21 -06:00
2012-08-01 12:56:15 +01:00
2012-08-01 12:56:15 +01:00
2012-09-08 10:17:57 +00:00
2012-08-01 13:32:10 +01:00
2012-08-15 19:43:17 +02:00
2012-07-27 21:13:01 +00:00
2012-08-01 12:56:15 +01:00
2012-07-29 17:05:35 +03:00
2012-07-29 17:05:35 +03:00
2012-08-09 18:21:47 +00:00
2012-07-29 17:05:35 +03:00
2012-08-22 10:47:17 -05:00
2012-02-15 09:39:21 -06:00
2012-09-06 17:04:33 +02:00
2012-02-15 09:39:21 -06:00
2012-09-26 16:46:28 +01:00
2012-08-22 10:47:17 -05:00
2012-08-22 10:47:17 -05:00
2012-08-22 10:47:17 -05:00
2012-04-12 11:14:29 +01:00
2012-06-11 00:23:04 +02:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-09-28 19:40:56 +02:00
2012-08-13 11:04:07 +01:00
2012-08-13 11:04:07 +01:00
2012-03-14 22:20:26 +01:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-08-22 10:47:17 -05:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-08-22 10:47:17 -05:00
2012-09-11 07:43:01 +02:00
2012-09-05 15:48:57 -03:00
2012-02-04 12:45:10 +00:00
2012-09-28 12:16:27 +02:00
2012-09-09 17:03:09 +03:00
2012-10-03 13:48:45 +00:00