Fix a bus error with malloc debugging enabled.

Reported by:	adamw
Approved by:	maintainer (implicit)
This commit is contained in:
Joe Marcus Clarke 2004-08-06 21:38:23 +00:00
parent e6fb357b19
commit d3cd45acfc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=115526
2 changed files with 12 additions and 0 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= desktop-file-utils
PORTVERSION= 0.7
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://freedesktop.org/Software/desktop-file-utils/releases/

View file

@ -0,0 +1,11 @@
--- src/update-desktop-database.c.orig Fri Aug 6 17:36:29 2004
+++ src/update-desktop-database.c Fri Aug 6 17:35:41 2004
@@ -381,7 +381,7 @@
for (i = 0; data_dirs[i] != NULL; i++);
- args = g_new (char *, i + 1);
+ args = g_new0 (char *, i + 1);
for (i = 0; data_dirs[i] != NULL; i++)
args[i] = g_build_filename (data_dirs[i], "applications", NULL);