[PATCH 1/15] gnome-desktop: Null ptr check #1
- From: Bryce Harrington <bryce canonical com>
- To: Soeren Sandmann <sandmann daimi au dk>
- Cc: ubuntu-x lists ubuntu com, gnomecc-list gnome org
- Subject: [PATCH 1/15] gnome-desktop: Null ptr check #1
- Date: Thu, 10 Apr 2008 12:50:37 -0700
gnome-desktop: 102_gd-xrandr-null-pointer-check.patch (LP: #197153)
Adds a single NULL pointer check for a crash we saw early in
development. Also see 105_gd-randr-null-ptrs.patch (later) for a more
extensive set of null pointer checks.
diff -Nurp gnome-desktop-2.21.92-patched/libgnome-desktop/randrwrap.c gnome-desktop-2.21.92-working/libgnome-desktop/randrwrap.c
--- gnome-desktop-2.21.92-patched/libgnome-desktop/randrwrap.c 2008-03-03 16:50:17.000000000 -0800
+++ gnome-desktop-2.21.92-working/libgnome-desktop/randrwrap.c 2008-03-03 16:52:40.000000000 -0800
@@ -574,7 +574,7 @@ output_initialize (RWOutput *output, XRR
g_print ("Output %lx Timestamp: %u\n", output->id, (guint32)info->timestamp);
- if (!info)
+ if (!info || !output->info)
{
/* FIXME */
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]