Rivoreo Source Code Repositories
src.rivoreo.one
/
systemd-stable
/
v239-16
/
.
/
coccinelle
/
take-ptr.cocci
blob: 0cebe815759fe2f68f46b3f7678068d682f11627 [
file
] [
log
] [
blame
] [
raw
]
@@
local
idexpression p
;
expression q
;
@@
-
p
=
q
;
-
q
=
NULL
;
-
return
p
;
+
return
TAKE_PTR
(
q
);
@@
expression p
,
q
;
@@
-
p
=
q
;
-
q
=
NULL
;
+
p
=
TAKE_PTR
(
q
);