socsvn commit: r255077 - soc2013/mattbw/backend/actions
mattbw at FreeBSD.org
mattbw at FreeBSD.org
Tue Jul 23 21:24:25 UTC 2013
Author: mattbw
Date: Tue Jul 23 21:24:24 2013
New Revision: 255077
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=255077
Log:
asserts on remove_packages
Modified:
soc2013/mattbw/backend/actions/remove_packages.c
Modified: soc2013/mattbw/backend/actions/remove_packages.c
==============================================================================
--- soc2013/mattbw/backend/actions/remove_packages.c Tue Jul 23 19:34:09 2013 (r255076)
+++ soc2013/mattbw/backend/actions/remove_packages.c Tue Jul 23 21:24:24 2013 (r255077)
@@ -39,6 +39,8 @@
{
bool success;
+ assert(backend != NULL);
+
(void)pk_backend_set_status(backend, PK_STATUS_ENUM_QUERY);
success = query_match_id_to_job(backend, PKG_JOBS_DEINSTALL, job);
@@ -55,6 +57,8 @@
{
bool success;
+ assert(backend != NULL);
+
(void)pk_backend_set_status(backend, PK_STATUS_ENUM_QUERY);
success = query_match_id_to_job(backend, PKG_JOBS_DEINSTALL, sim_job);
@@ -69,6 +73,9 @@
job(struct pkg_jobs *jobs, struct query *q)
{
+ assert(jobs != NULL);
+ assert(q != NULL);
+
return query_jobs_apply_emitter(jobs,
q,
PK_STATUS_ENUM_REMOVE,
@@ -83,6 +90,9 @@
sim_job(struct pkg_jobs *jobs, struct query *q)
{
+ assert(jobs != NULL);
+ assert(q != NULL);
+
return query_jobs_simulate_emitter(jobs,
q,
pkgutils_pkg_remove_state);
More information about the svn-soc-all
mailing list