diff options
author | 2015-12-22 08:39:26 +0000 | |
---|---|---|
committer | 2015-12-22 08:39:26 +0000 | |
commit | 6f04d4ab2158b2d5a39bd87d510c0b5723f933a4 (patch) | |
tree | 642cd62950ef9dc658a8b1026120e2dba79afa48 | |
parent | Initialize a char* to NULL rather than 0. (diff) | |
download | wireguard-openbsd-6f04d4ab2158b2d5a39bd87d510c0b5723f933a4.tar.xz wireguard-openbsd-6f04d4ab2158b2d5a39bd87d510c0b5723f933a4.zip |
Assign pointer variables to NULL rather than 0. No functional change.
-rw-r--r-- | bin/ksh/vi.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/ksh/vi.c b/bin/ksh/vi.c index 81e195736bd..fd83d80f4e2 100644 --- a/bin/ksh/vi.c +++ b/bin/ksh/vi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vi.c,v 1.38 2015/11/05 18:41:02 mmcc Exp $ */ +/* $OpenBSD: vi.c,v 1.39 2015/12/22 08:39:26 mmcc Exp $ */ /* * vi command editing @@ -1908,13 +1908,13 @@ expand_word(int command) /* Undo previous expansion */ if (command == 0 && expanded == EXPAND && buf) { restore_edstate(es, buf); - buf = 0; + buf = NULL; expanded = NONE; return 0; } if (buf) { free_edstate(buf); - buf = 0; + buf = NULL; } nwords = x_cf_glob(XCF_COMMAND_FILE|XCF_FULLPATH, @@ -1970,13 +1970,13 @@ complete_word(int command, int count) } if (command == 0 && expanded == PRINT && buf) { restore_edstate(es, buf); - buf = 0; + buf = NULL; expanded = NONE; return 0; } if (buf) { free_edstate(buf); - buf = 0; + buf = NULL; } /* XCF_FULLPATH for count 'cause the menu printed by print_expansions() |