fix possible crash in shot module
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 13 Dec 2012 14:56:53 +0000 (14:56 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 13 Dec 2012 14:56:53 +0000 (14:56 +0000)
SVN revision: 80875

src/modules/shot/e_mod_main.c

index 126b315..0841252 100644 (file)
@@ -592,6 +592,7 @@ _shot_now(E_Zone *zone, E_Border *bd)
    Ecore_X_Display *display;
    Ecore_X_Screen *scr;
 
+   if ((!zone) && (!bd)) return;
    if (zone)
      {
         sman = zone->container->manager;