Fix operator for Visual Studio
authorJan-E <github@ehrhardt.nl>
Thu, 24 Oct 2019 10:28:18 +0000 (12:28 +0200)
committerJan-E <github@ehrhardt.nl>
Thu, 24 Oct 2019 10:28:18 +0000 (12:28 +0200)
src/php_http_message_body.c

index db86ab07ea8129e8c7a18d14ee306579f060c3a6..97b1a148bf3ae87c9b3984530cd563b3b7133b55 100644 (file)
@@ -393,7 +393,7 @@ static ZEND_RESULT_CODE add_recursive_files(php_http_message_body_t *body, const
                        {
                                if (Z_TYPE_P(val) == IS_ARRAY || Z_TYPE_P(val) == IS_OBJECT) {
                                        char *str = key.key ? format_key(&key, name) : NULL;
-                                       const char *prefix = str ?: name;
+                                       const char *prefix = str ? str : name;
 
                                        if (SUCCESS != add_recursive_files(body, prefix, HASH_OF(val))) {
                                                efree(str);