the week-end party goes on \o\ /o/
finished transition to t_psdata format corrected some pointer formating started testing on parser function: - weird valgrind errors about uninitialised values - some read/write/free errors still hanging around ** END TRANSMISSION **
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2019/02/21 14:06:40 by tmaze #+# #+# */
|
||||
/* Updated: 2019/02/23 15:24:12 by tmaze ### ########.fr */
|
||||
/* Updated: 2019/02/24 13:59:48 by tmaze ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -26,11 +26,11 @@ void ps_swap(t_psdata *data, char c)
|
||||
s = data->b;
|
||||
if (c == 'b')
|
||||
size = data->size_b;
|
||||
if (*s != NULL && size >= 2)
|
||||
if (s != NULL && size >= 2)
|
||||
{
|
||||
tmp = (*s)->nb;
|
||||
(*s)->nb = (*s)->next->nb;
|
||||
(*s)->next->nb = tmp;
|
||||
tmp = s->nb;
|
||||
s->nb = s->next->nb;
|
||||
s->next->nb = tmp;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user