[gnome-control-center/gnome-3-16] printers: Fix compile-time warning
- From: Marek Kašík <mkasik src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-16] printers: Fix compile-time warning
- Date: Wed, 29 Jul 2015 13:48:44 +0000 (UTC)
commit ddf16178288583e466dde9864982e5dae310ee4b
Author: Marek Kasik <mkasik redhat com>
Date: Wed Jul 29 15:40:22 2015 +0200
printers: Fix compile-time warning
pp-new-printer-dialog.c:673:18: warning: 'device' may be used uninitialized
in this function [-Wmaybe-uninitialized]
panels/printers/pp-new-printer-dialog.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/panels/printers/pp-new-printer-dialog.c b/panels/printers/pp-new-printer-dialog.c
index 84ae357..7fc71d3 100644
--- a/panels/printers/pp-new-printer-dialog.c
+++ b/panels/printers/pp-new-printer-dialog.c
@@ -680,6 +680,7 @@ group_physical_devices_cb (gchar ***device_uris,
/* Is there any device in this sublist? */
if (device_uris[i][0] != NULL)
{
+ device = NULL;
for (j = 0; device_uris[i][j] != NULL; j++)
{
device = device_in_list (device_uris[i][j], priv->devices);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]