- add missing header

- free is possibly called with a NULL pointer argument
- bump PKGNAME

submitted by Michael Warmuth <ayuu at suljee dot de>
This commit is contained in:
kevlo 2009-06-10 02:41:22 +00:00
parent f297989eaf
commit 2e5faf876d
2 changed files with 26 additions and 2 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.13 2008/10/02 20:31:16 simon Exp $
# $OpenBSD: Makefile,v 1.14 2009/06/10 02:41:22 kevlo Exp $
SHARED_ONLY= Yes
COMMENT= interface to libcdaudio
DISTNAME= Audio-CD-0.04
PKGNAME= p5-${DISTNAME}p0
PKGNAME= p5-${DISTNAME}p1
CATEGORIES= audio
MAINTAINER= Kevin Lo <kevlo@openbsd.org>

View File

@ -0,0 +1,24 @@
$OpenBSD: patch-cddb_lookup_c,v 1.1 2009/06/10 02:41:22 kevlo Exp $
--- cddb_lookup.c.orig Wed Jun 10 10:11:06 2009
+++ cddb_lookup.c Wed Jun 10 10:12:15 2009
@@ -21,6 +21,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, U
#include "cdaudio.h"
#include "cddb_lookup.h"
#include "stdio.h"
+#include <stdlib.h>
#define PACKAGE "Audio::CD"
@@ -101,10 +102,10 @@ void cddb_lookup(int cd_desc, struct disc_data *data)
cddb_read_serverlist(&conf, &list, proxy);
if(conf.conf_access == CDDB_ACCESS_LOCAL) {
free(proxy);
+ proxy = NULL;
cddb_generate_unknown_entry(cd_desc, data);
return;
- }
- if(!conf.conf_proxy) {
+ } else if(!conf.conf_proxy) {
free(proxy);
proxy = NULL;
} else