Changeset 2008c4a in mainline for uspace/app/blkdump/blkdump.c


Ignore:
Timestamp:
2025-04-22T10:12:20Z (38 hours ago)
Author:
GitHub <noreply@…>
Parents:
0639afc (diff), 55a81a31 (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.
git-author:
Miroslav Cimerman <70661600+mcimerman@…> (2025-04-22 10:12:20)
git-committer:
GitHub <noreply@…> (2025-04-22 10:12:20)
Message:

Merge 55a81a3189d42385a6cfcd65bdafe833123928a7 into 0639afc537ab3c464dd97f55c6ed3c70103f3c15

File:
1 edited

Legend:

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

    r0639afc r2008c4a  
    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.