Changeset aca1777 in mainline for uspace/app/blkdump/blkdump.c


Ignore:
Timestamp:
2025-05-08T17:12:05Z (3 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
2f21cd4
Parents:
1cfce3f (diff), 61f28c4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge upstream into helenraid

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/blkdump/blkdump.c

    r1cfce3f raca1777  
    9595        }
    9696
    97         if (str_cmp(*argv, "--offset") == 0) {
     97        if (*argv && str_cmp(*argv, "--offset") == 0) {
    9898                --argc;
    9999                ++argv;
     
    115115        }
    116116
    117         if (str_cmp(*argv, "--count") == 0) {
     117        if (*argv && str_cmp(*argv, "--count") == 0) {
    118118                --argc;
    119119                ++argv;
     
    136136
    137137devname:
     138        if (*argv == NULL) {
     139                printf(NAME ": Error, argument missing (device_name).\n");
     140                syntax_print();
     141                return 1;
     142        }
     143
    138144        if (argc != 1) {
    139145                printf(NAME ": Error, unexpected argument.\n");
Note: See TracChangeset for help on using the changeset viewer.