diff options
author | Judd Vinet <judd@archlinux.org> | 2004-03-02 05:49:15 +0100 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2004-03-02 05:49:15 +0100 |
commit | 88c73d4d65d7f3fd7bd9a9777f6816d5896cfa4a (patch) | |
tree | e6381322731790d92be5f331605e1162ead733a7 /src/package.c | |
parent | a11fb0b581356b23b343683302e201ff7dfcfe48 (diff) | |
download | pacman-88c73d4d65d7f3fd7bd9a9777f6816d5896cfa4a.tar.gz pacman-88c73d4d65d7f3fd7bd9a9777f6816d5896cfa4a.tar.xz |
Imported from pacman-2.7.5.tar.gz
Diffstat (limited to 'src/package.c')
-rw-r--r-- | src/package.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/package.c b/src/package.c index 6eeccd01..1c7359bd 100644 --- a/src/package.c +++ b/src/package.c @@ -1,7 +1,7 @@ /* * package.c * - * Copyright (c) 2002-2003 by Judd Vinet <jvinet@zeroflux.org> + * Copyright (c) 2002-2004 by Judd Vinet <jvinet@zeroflux.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -289,6 +289,9 @@ int is_pkgin(pkginfo_t *needle, PMList *haystack) { PMList *lp; pkginfo_t *info; + if(needle == NULL || haystack == NULL) { + return(0); + } for(lp = haystack; lp; lp = lp->next) { info = (pkginfo_t*)lp->data; |