1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-22 20:41:26 +00:00

Don't segfault if $MAIL is not set.

Submitted by:	joerg
This commit is contained in:
Tilman Keskinoz 2003-03-27 14:33:36 +00:00
parent a502bdd6ab
commit c4e98a9302
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=77532
2 changed files with 13 additions and 0 deletions

View File

@ -6,6 +6,7 @@
PORTNAME= xmms-mailnotify
PORTVERSION= 0.2.0
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= arved

View File

@ -0,0 +1,12 @@
--- mailnotify.c.orig Thu Mar 27 14:06:57 2003
+++ mailnotify.c Thu Mar 27 14:08:02 2003
@@ -489,7 +489,7 @@
incoming_folder = (gchar *)getenv("MAIL");
- if (strlen(incoming_folder) < 1)
+ if (incoming_folder == NULL || strlen(incoming_folder) < 1)
{
if((pw = getpwuid(geteuid())) == NULL)
{