提交 26584116 编写于 作者: D Daniel Gustafsson

Pass NULL instead of InvalidOid for pointer argument

MetaTrackAddUpdInternal() takes a HeapTuple as argument, which in
turn is defined as a pointer to a HeapTupleData structure. Pass
NULL rather than InvalidOid as that gets treated as a null pointer
constant causing a compiler warning:

heap.c:750:13: warning: expression which evaluates to zero treated
               as a null pointer constant of type 'HeapTuple'
               (aka 'struct HeapTupleData *')
      [-Wnon-literal-null-conversion]
上级 8498281b
......@@ -747,7 +747,7 @@ void MetaTrackAddObject(Oid classid,
MetaTrackAddUpdInternal(classid, objoid, relowner,
actionname, subtype,
rel, InvalidOid);
rel, NULL);
heap_close(rel, RowExclusiveLock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册