From 58229439447d5617913a5a2e173b78105c694842 Mon Sep 17 00:00:00 2001 From: Pavel Březina Date: Mon, 12 May 2014 22:54:01 +0200 Subject: SBUS: Return empty string if a string getter returns NULL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In line with getters never returning errors, a getter should return an empty string instead of NULL in case a string-like property in SSSD is not set. Reviewed-by: Stef Walter Reviewed-by: Pavel Březina --- src/tests/sbus_codegen_tests_generated.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/tests/sbus_codegen_tests_generated.h') diff --git a/src/tests/sbus_codegen_tests_generated.h b/src/tests/sbus_codegen_tests_generated.h index 9599091dd..7dc817edf 100644 --- a/src/tests/sbus_codegen_tests_generated.h +++ b/src/tests/sbus_codegen_tests_generated.h @@ -35,6 +35,7 @@ #define TEST_PILOT_DOUBLE "double" #define TEST_PILOT_STRING "string" #define TEST_PILOT_OBJECT_PATH "object_path" +#define TEST_PILOT_NULL_STRING "null_string" #define TEST_PILOT_BYTE_ARRAY "byte_array" #define TEST_PILOT_INT16_ARRAY "int16_array" #define TEST_PILOT_UINT16_ARRAY "uint16_array" @@ -96,6 +97,7 @@ struct test_pilot { void (*test_pilot_get_double)(struct sbus_request *, void *data, double *); void (*test_pilot_get_string)(struct sbus_request *, void *data, const char * *); void (*test_pilot_get_object_path)(struct sbus_request *, void *data, const char * *); + void (*test_pilot_get_null_string)(struct sbus_request *, void *data, const char * *); void (*test_pilot_get_byte_array)(struct sbus_request *, void *data, uint8_t * *, int *); void (*test_pilot_get_int16_array)(struct sbus_request *, void *data, int16_t * *, int *); void (*test_pilot_get_uint16_array)(struct sbus_request *, void *data, uint16_t * *, int *); -- cgit