Sfoglia il codice sorgente

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

[remx] Add warning for missing new name to avoid segmentation fault
pull/5032/head^2
Ray 2 mesi fa
committed by GitHub
parent
commit
948b48430d
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: B5690EEEBB952194
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. +1
    -0
      tools/rexm/rexm.c

+ 1
- 0
tools/rexm/rexm.c Vedi 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
{

Caricamento…
Annulla
Salva