mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-08 06:00:38 -04:00
glnx_strjoina: Cast to result for C++ compatibility
Prep for using C++ in rpm-ostree (temporarily).
This commit is contained in:
1 parent
efcacc4c5f
commit
a8b4418954
1 file changed
+1
-1
+1
-1
@@ -52,7 +52,7 @@ G_BEGIN_DECLS
|
||||
unsigned _i_; \
|
||||
for (_i_ = 0; _i_ < G_N_ELEMENTS(_appendees_) && _appendees_[_i_]; _i_++) \
|
||||
_len_ += strlen(_appendees_[_i_]); \
|
||||
_p_ = _d_ = alloca(_len_ + 1); \
|
||||
_p_ = _d_ = (char*) alloca(_len_ + 1); \
|
||||
for (_i_ = 0; _i_ < G_N_ELEMENTS(_appendees_) && _appendees_[_i_]; _i_++) \
|
||||
_p_ = stpcpy(_p_, _appendees_[_i_]); \
|
||||
*_p_ = 0; \
|
||||
|
||||
Reference in new issue
Block a user