aboutsummaryrefslogtreecommitdiffstats
path: root/editcap.c
diff options
context:
space:
mode:
authorcmaynard <cmaynard@f5534014-38df-0310-8fa8-9805f1628bb7>2011-04-12 18:43:44 +0000
committercmaynard <cmaynard@f5534014-38df-0310-8fa8-9805f1628bb7>2011-04-12 18:43:44 +0000
commitf7cbc09360374cfb5061d5abf8f8a472391ed108 (patch)
tree8a55b4747e36304a6cb8dfe191e8d2febfe65ef8 /editcap.c
parent93f793e874e3326da8c99a3870b02855672d5373 (diff)
Don't bother to strcpy() an empty string; just set buf[0] = '\0': Coverity 626
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36601 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'editcap.c')
-rw-r--r--editcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editcap.c b/editcap.c
index 770781b75d..3c70c7f14d 100644
--- a/editcap.c
+++ b/editcap.c
@@ -166,7 +166,7 @@ abs_time_to_str_with_sec_resolution(const struct wtap_nstime *abs_time)
tmp->tm_min,
tmp->tm_sec);
} else
- strcpy(buf, "");
+ buf[0] = '\0';
return buf;
}