summaryrefslogtreecommitdiff
path: root/plugins/clone
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-02-03 12:12:15 +0800
committerSam Spilsbury <smspillaz@gmail.com>2010-02-03 12:12:15 +0800
commitbc1d53a7b9167491cd5b7252c96850a470201c6f (patch)
treedc17b32d2051399f3fbee483bb3c634734c45e97 /plugins/clone
parent5afc2bc1c9c8c39c082b2c44664e3f189d7bfae8 (diff)
downloadcompiz-with-glib-mainloop-bc1d53a7b9167491cd5b7252c96850a470201c6f.tar.gz
compiz-with-glib-mainloop-bc1d53a7b9167491cd5b7252c96850a470201c6f.tar.bz2
Fix possible segfault on 64-bit arch. due to passing 0 to va_list and retrieving it as pointer.
Forward port of commit 5a6dbfdea66620b3a6ae50540a75714e0a975ce7 to master
Diffstat (limited to 'plugins/clone')
-rw-r--r--plugins/clone/src/clone.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/clone/src/clone.cpp b/plugins/clone/src/clone.cpp
index 9352a4e..afdd39b 100644
--- a/plugins/clone/src/clone.cpp
+++ b/plugins/clone/src/clone.cpp
@@ -351,7 +351,7 @@ CloneScreen::initiate (CompAction *action,
CompOption::Vector options)
{
std::list <Clone *>::iterator it = clones.begin ();
- if (grab || screen->otherGrabExist ("clone", 0))
+ if (grab || screen->otherGrabExist ("clone", NULL))
return false;
if (!grabHandle)