Print this page
5083 avoid undefined order of operations in assignments

*** 857,867 **** if (!queobjp) return (NULL); queobjp->que_ops = &qmerge_ops; qfp = (struct que_data *)(queobjp+1); ! qfp->q_tab.hd_private = qfp->q_tab.hd_private = 0; qfp->q_tab.hd_sync_next = qfp->q_tab.hd_async_next = NULL; qfp->q_tab.hd_cnt = (void *)qmerge_sync2async; queobjp->que_data = (opaque_t)qfp; return ((opaque_t)queobjp); --- 857,867 ---- if (!queobjp) return (NULL); queobjp->que_ops = &qmerge_ops; qfp = (struct que_data *)(queobjp+1); ! qfp->q_tab.hd_private = 0; qfp->q_tab.hd_sync_next = qfp->q_tab.hd_async_next = NULL; qfp->q_tab.hd_cnt = (void *)qmerge_sync2async; queobjp->que_data = (opaque_t)qfp; return ((opaque_t)queobjp);