diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-08-22 15:06:15 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-08-22 15:06:15 -0400 |
| commit | 3196c24604551745645f4737a67ecfebb416a4fc (patch) | |
| tree | d37d34e19c49c58a3c124d8a1ac24bff64e584d3 /src | |
| parent | 7c283bf98c54245e87c43aac100bb87cb04bb04e (diff) | |
pke-editor: handle callback list popup empty
Diffstat (limited to 'src')
| -rw-r--r-- | src/plugins.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins.cpp b/src/plugins.cpp index 010c20e..838237b 100644 --- a/src/plugins.cpp +++ b/src/plugins.cpp @@ -72,7 +72,7 @@ CallbackSignature *PkePlugin_GetSortedSignatures(long &count) { qsort(sortedSignatures.data, sortedSignatures.next, sizeof(CallbackSignature), pstrncmp); } count = sortedSignatures.next; - return &sortedSignatures[0]; + return reinterpret_cast<CallbackSignature*>(sortedSignatures.data); } void PkePlugin_Teardown() { pk_arr_reset(&sortedSignatures); |
