| От | Neil Conway |
|---|---|
| Тема | Re: arrayfuncs: fix read of uninitialized mem |
| Дата | |
| Msg-id | 1095289855.31400.2.camel@localhost.localdomain обсуждение исходный текст |
| Ответ на | Re: arrayfuncs: fix read of uninitialized mem (Joe Conway <mail@joeconway.com>) |
| Ответы |
Re: arrayfuncs: fix read of uninitialized mem
|
| Список | pgsql-patches |
On Thu, 2004-09-16 at 03:32, Joe Conway wrote: > Personally I prefer the original style here. Personally I like the style I used, because it makes one class of mistake more difficult -- getting the sizeof() wrong. Suppose the type of the variable you're allocating changes -- if you use ptr = malloc(sizeof(*ptr)); then the code is still right, but with ptr = malloc(sizeof(some_type)); you need to remember to update the sizeof(); worse, the compiler won't warn you about this. -Neil
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера