You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In multiple places strings are copied from one place to another, but instead of using strdup or the str* functions, the project seems to prefer malloc+memcpy, which IMHO results in less readable more error-prone code.
I agree that it looks not nice but if there is not an issue, I would prefer to keep it like it is. Please look at the patch frequency in the project and you will discover that the project has not much contribution. In future it will be even not used by DNF5.
In multiple places strings are copied from one place to another, but instead of using
strdup
or thestr*
functions, the project seems to prefermalloc
+memcpy
, which IMHO results in less readable more error-prone code.Examples of this:
libcomps/libcomps/src/comps_objmradix.c
Line 46 in 2ed0fe5
libcomps/libcomps/src/comps_doc.c
Line 263 in 2ed0fe5
libcomps/libcomps/src/comps_elem.c
Line 890 in 2ed0fe5
libcomps/libcomps/src/comps_elem.c
Line 891 in 2ed0fe5
.. and many others.
The text was updated successfully, but these errors were encountered: