Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Conversation

@krocard
Copy link
Contributor

@krocard krocard commented Dec 1, 2014

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.

  

@krocard krocard force-pushed the vasprintf_error_detection branch from 2f3f28e to f75cc99 Compare December 1, 2014 14:07
@gdenneul
Copy link
Contributor

gdenneul commented Dec 1, 2014

+1

2 similar comments
@krocard
Copy link
Contributor Author

krocard commented Dec 1, 2014

👍

@makohoek
Copy link
Contributor

makohoek commented Dec 2, 2014

👍

@krocard krocard force-pushed the vasprintf_error_detection branch from f75cc99 to 56ba10d Compare March 7, 2015 00:29
@krocard
Copy link
Contributor Author

krocard commented Mar 7, 2015

Commits were rebased without modification due to github refusing to merge them otherwise.

@krocard
Copy link
Contributor Author

krocard commented Apr 3, 2015

@dawagner Can you review ? This pull request is 4 month old now !

@dawagner
Copy link
Contributor

dawagner commented Apr 7, 2015

The varargs are going away thanks to @clero 's pull request anyway.

@dawagner dawagner closed this Apr 7, 2015
@krocard
Copy link
Contributor Author

krocard commented Apr 7, 2015

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.

@krocard krocard mentioned this pull request Aug 20, 2015
1 task
@krocard
Copy link
Contributor Author

krocard commented Aug 20, 2015

Reopen because #58 was never merged in master and the rebase will not be that difficult if it is merged (just delete the function).

@krocard krocard reopened this Aug 20, 2015
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>
@krocard krocard force-pushed the vasprintf_error_detection branch from 56ba10d to f340537 Compare August 21, 2015 15:52
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>
@krocard krocard force-pushed the vasprintf_error_detection branch from f340537 to b7bfb4b Compare August 21, 2015 16:18
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

coding style

@OznOg
Copy link
Contributor

OznOg commented Aug 24, 2015

👎

@krocard
Copy link
Contributor Author

krocard commented Aug 27, 2015

Solved by log rework in #168 will be merged in windows_port then master shortly.

@krocard krocard closed this Aug 27, 2015
@krocard krocard deleted the vasprintf_error_detection branch November 9, 2015 09:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants