-
Notifications
You must be signed in to change notification settings - Fork 69
vasprintf fails by returning -1 #27
Conversation
2f3f28e to
f75cc99
Compare
|
+1 |
2 similar comments
|
👍 |
|
👍 |
f75cc99 to
56ba10d
Compare
|
Commits were rebased without modification due to github refusing to merge them otherwise. |
|
@dawagner Can you review ? This pull request is 4 month old now ! |
|
The varargs are going away thanks to @clero 's pull request anyway. |
|
I guess you are talking about #58. I agree that this pull request is far better. Nevertheless I hope it will be merged one day. Nobody reviewed it yet and their is still opened questions about it (especially the commits delegating log to clients). Plus this pull request is rather small and easy to rebased on. |
|
Reopen because #58 was never merged in master and the rebase will not be that difficult if it is merged (just delete the function). |
Handling of varadic log formating. It used to be duplicated in 4 functions. Create a new vLog function, taking a va_list as parameter and formating the log. All 4 previous mention varadic argument log functions now forward their argument to vLog. Signed-off-by: Kevin Rocard <kevinx.rocard@intel.com>
56ba10d to
f340537
Compare
int vasprintf(char **strp, const char *fmt, va_list ap) return -1 on failure, not by setting strp to NULL. Replace check for NULL by checking for -1 return. Signed-off-by: Kevin Rocard <kevinx.rocard@intel.com>
f340537 to
b7bfb4b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
coding style
|
👎 |
|
Solved by log rework in #168 will be merged in windows_port then master shortly. |
int vasprintf(char **strp, const char *fmt, va_list ap)
return -1 on failure, not by setting strp to NULL.
Replace check for NULL by checking for -1 return.
