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:
parent
a502bdd6ab
commit
c4e98a9302
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=77532
@ -6,6 +6,7 @@
|
||||
|
||||
PORTNAME= xmms-mailnotify
|
||||
PORTVERSION= 0.2.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= audio
|
||||
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
||||
MASTER_SITE_SUBDIR= arved
|
||||
|
12
audio/xmms-mailnotify/files/patch-ab
Normal file
12
audio/xmms-mailnotify/files/patch-ab
Normal 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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user