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 db86ab0..97b1a14 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);