Prefer VIR_STRDUP over virAsprintf(&dst, "%s", str)
There's no sense in using virAsprintf() just to duplicate a string. We should use VIR_STRDUP which is designed just for that.
Showing
想要评论请 注册 或 登录
There's no sense in using virAsprintf() just to duplicate a string. We should use VIR_STRDUP which is designed just for that.