Merge pull request #5092 from maiconpintoabreu/fix-rename-missing-newname

[remx] Add warning for missing new name to avoid segmentation fault
This commit is contained in:
Ray 2025-08-07 17:13:27 +02:00 committed by GitHub
commit 948b48430d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -278,6 +278,7 @@ int main(int argc, char *argv[])
else if (strcmp(argv[1], "rename") == 0)
{
if (argc == 2) LOG("WARNING: No filename provided to be renamed\n");
else if (argc == 3) LOG("WARNING: No new filename provided to be renamed\n");
else if (argc > 4) LOG("WARNING: Too many arguments provided\n");
else
{