Fix an unitialized variable, which may cause a warning message

Submitted by:	Kevin Dorne
Obtained from:	Gentoo http://bugs.gentoo.org/260308
This commit is contained in:
Tilman Keskinoz 2010-02-06 18:02:40 +00:00
parent 3a2e6eed88
commit a7d02d3d32
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=249340
2 changed files with 21 additions and 1 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= ssh_askpass_gtk2
PORTVERSION= 0.4
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= security
MASTER_SITES= http://www.cgabriel.org/download/ssh-askpass-fullscreen/
DISTNAME= ssh-askpass-fullscreen-${PORTVERSION}

View file

@ -0,0 +1,20 @@
--- ssh-askpass-fullscreen.c.orig 2006-01-16 04:49:38.000000000 -0800
+++ ssh-askpass-fullscreen.c 2010-02-04 22:30:32.000000000 -0800
@@ -44,7 +44,7 @@
#include <gtk/gtk.h>
/* XPM */
-static char *ocean_stripes[] = {
+static const char *ocean_stripes[] = {
/* columns rows colors chars-per-pixel */
"64 64 3 1",
" c #A0A9C1",
@@ -247,7 +247,7 @@
GdkColor color;
gchar *str;
GdkGrabStatus status;
- int grab_tries;
+ int grab_tries = 0;
const char *failed;
grab_server = (getenv("GNOME_SSH_ASKPASS_GRAB_SERVER") != NULL);