From b93523c0b1009f7ff3e6f1629ad11ab7594333fb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 17 Oct 2013 21:45:32 +0200 Subject: UpdateGlue: never pass null to update_enqueue() --- src/UpdateGlue.hxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/UpdateGlue.hxx') diff --git a/src/UpdateGlue.hxx b/src/UpdateGlue.hxx index 9d546a2a3..c9fc0f9a1 100644 --- a/src/UpdateGlue.hxx +++ b/src/UpdateGlue.hxx @@ -20,6 +20,8 @@ #ifndef MPD_UPDATE_GLUE_HXX #define MPD_UPDATE_GLUE_HXX +#include "Compiler.h" + void update_global_init(void); void update_global_finish(void); @@ -30,10 +32,11 @@ isUpdatingDB(void); /** * Add this path to the database update queue. * - * @param path a path to update; if NULL or an empty string, + * @param path a path to update; if an empty string, * the whole music directory is updated * @return the job id, or 0 on error */ +gcc_nonnull_all unsigned update_enqueue(const char *path, bool discard); -- cgit v1.2.3