]> www.infradead.org Git - mtd-utils.git/commit
fs-tests: integck: clean-up copy_string
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 11 Apr 2011 15:30:57 +0000 (18:30 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 18 Apr 2011 14:44:45 +0000 (17:44 +0300)
commite777b6032364e6fa9b5ff90c1ba2bdb6167bf24f
tree13a8b57aa7a638fb91f2d722235565c78e2f1cbe
parent8b625290dc38d0b9af7dbe896861f11ef75eea1e
fs-tests: integck: clean-up copy_string

This is a clean-up patch which:
1. Simplifies copy_string by useng strdup instead of malloc
2. Adds an assertion which checks the input parameter agains NULL,
   instead of checking it.
3. Re-names it to dup_string which looks more readable to me.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
tests/fs-tests/integrity/integck.c