r4419 - trunk/src/target/opkg/libopkg
thomas at docs.openmoko.org
thomas at docs.openmoko.org
Fri May 9 13:50:02 CEST 2008
Author: thomas
Date: 2008-05-09 13:50:02 +0200 (Fri, 09 May 2008)
New Revision: 4419
Modified:
trunk/src/target/opkg/libopkg/opkg.c
Log:
opkg: protect against NULL src
Modified: trunk/src/target/opkg/libopkg/opkg.c
===================================================================
--- trunk/src/target/opkg/libopkg/opkg.c 2008-05-09 10:52:43 UTC (rev 4418)
+++ trunk/src/target/opkg/libopkg/opkg.c 2008-05-09 11:50:02 UTC (rev 4419)
@@ -61,7 +61,8 @@
new->name = sstrdup (old->name);
new->version = pkg_version_str_alloc (old);
new->architecture = sstrdup (old->architecture);
- new->repository = sstrdup (old->src->name);
+ if (old->src)
+ new->repository = sstrdup (old->src->name);
new->description = sstrdup (old->description);
new->tags = sstrdup (old->tags);
new->url = sstrdup (old->url);
More information about the commitlog
mailing list